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§
Sourcefn handle(&self) -> &ClientHandle
fn handle(&self) -> &ClientHandle
Internal function to get a reference to the rcl
handle.
Sourcefn execute(&self) -> Result<(), RclrsError>
fn execute(&self) -> Result<(), RclrsError>
Tries to take a new response and run the callback or future with it.