rclrs

Trait SubscriptionCallback

Source
pub trait SubscriptionCallback<T, Args>: Send + 'static
where T: Message,
{ // Required method fn into_callback(self) -> AnySubscriptionCallback<T>; }
Expand description

A trait for allowed callbacks for subscriptions.

See AnySubscriptionCallback for a list of possible callback signatures.

Required Methods§

Source

fn into_callback(self) -> AnySubscriptionCallback<T>

Converts the callback into an enum.

User code never needs to call this function.

Implementors§

Source§

impl<T, A0, A1, Func> SubscriptionCallback<T, (A0, A1)> for Func
where Func: FnMut(A0, A1) + Send + 'static, (A0, A1): ArgTuple<T, Func>, T: Message,

Source§

impl<T, A0, Func> SubscriptionCallback<T, (A0,)> for Func
where Func: FnMut(A0) + Send + 'static, (A0,): ArgTuple<T, Func>, T: Message,