pub struct Client<Srv> where
    Srv: ServiceT + 'static, 
{ /* private fields */ }
Expand description

Service client

Implementations

Get the service name.

Examples
let mut client = node.create_client::<Empty>("service", &QoSProfile::default())?;
let res = client.send_request(&Empty_Request {}).await?;

Get the service name.

Examples
let client = node.create_client::<Empty>("service", &QoSProfile::default())?;
assert_eq!(client.service_name().unwrap(), "/service");

Get the service name.

Examples
let client = node.create_client::<Empty>("service", &QoSProfile::default())?;
assert!(client.is_valid());

Get the service name.

Examples
let client = node.create_client::<Empty>("service", &QoSProfile::default())?;
println!("{}", client.service_is_available()?);

Get the service name.

Examples
let client = node.create_client::<Empty>("service", &QoSProfile::default())?;
client.wait_service()?;

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.