pub struct Publisher<T> { /* private fields */ }
Expand description
A publisher of Message
s.
Create one using one of the
advertise
functions.
Drop
ping the publisher will
unadvertise the message.
Implementations
sourceimpl<T> Publisher<T>
impl<T> Publisher<T>
sourcepub fn is_advertised(&self) -> bool
pub fn is_advertised(&self) -> bool
Check whether the message is already advertised.
Will be true after the first call to
publish
.
sourcepub fn instance(&self) -> Option<u32>
pub fn instance(&self) -> Option<u32>
Get the instance number of the published message.
Only available after the first call to
publish
,
for publishers created through
advertise_multi
or
advertise_multi_queue
.
sourcepub fn raw_handle(&self) -> usize
pub fn raw_handle(&self) -> usize
Get the raw orb_advert_t
.
Will return 0 before the first call to
publish
.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Publisher<T>
impl<T> Send for Publisher<T>
impl<T> Sync for Publisher<T>
impl<T> Unpin for Publisher<T>
impl<T> UnwindSafe for Publisher<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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