Struct ros2_client::Subscription
source · [−]pub struct Subscription<M: DeserializeOwned> { /* private fields */ }
Expand description
A ROS2 Subscription
Corresponds to a (simplified) DataReader
in
DDS
Implementations
sourceimpl<M: 'static + DeserializeOwned> Subscription<M>
impl<M: 'static + DeserializeOwned> Subscription<M>
Trait Implementations
sourceimpl<D> Evented for Subscription<D> where
D: DeserializeOwned,
impl<D> Evented for Subscription<D> where
D: DeserializeOwned,
sourcefn register(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
fn register(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
Register self
with the given Poll
instance. Read more
Auto Trait Implementations
impl<M> !RefUnwindSafe for Subscription<M>
impl<M> Send for Subscription<M> where
M: Send,
impl<M> !Sync for Subscription<M>
impl<M> Unpin for Subscription<M> where
M: Unpin,
impl<M> !UnwindSafe for Subscription<M>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more