pub trait SubscriptionBase: Send + Sync {
// Required methods
fn handle(&self) -> &SubscriptionHandle;
fn execute(&self) -> Result<(), RclrsError>;
}
Expand description
Trait to be implemented by concrete Subscription
s.
Required Methods§
Sourcefn handle(&self) -> &SubscriptionHandle
fn handle(&self) -> &SubscriptionHandle
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 message and run the callback with it.