rclrs

Trait ClientBase

Source
pub trait ClientBase: Send + Sync {
    // Required methods
    fn handle(&self) -> &ClientHandle;
    fn execute(&self) -> Result<(), RclrsError>;
}
Expand description

Trait to be implemented by concrete Client structs.

See Client<T> for an example.

Required Methods§

Source

fn handle(&self) -> &ClientHandle

Internal function to get a reference to the rcl handle.

Source

fn execute(&self) -> Result<(), RclrsError>

Tries to take a new response and run the callback or future with it.

Implementors§

Source§

impl<T> ClientBase for Client<T>
where T: Service,