pub struct CommandPublisher<Pub> { /* private fields */ }Expand description
A struct for publishing commands
Implementations§
Source§impl<Pub> CommandPublisher<Pub>
impl<Pub> CommandPublisher<Pub>
Sourcepub fn new(publisher: Pub, topic: &str) -> CommandPublisher<Pub>
pub fn new(publisher: Pub, topic: &str) -> CommandPublisher<Pub>
Creates an new command publisher configured with the given publisher that will send to the specified topic
Source§impl<Pub: Publisher> CommandPublisher<Pub>
impl<Pub: Publisher> CommandPublisher<Pub>
Trait Implementations§
Source§impl<Pub: Clone> Clone for CommandPublisher<Pub>
impl<Pub: Clone> Clone for CommandPublisher<Pub>
Source§fn clone(&self) -> CommandPublisher<Pub>
fn clone(&self) -> CommandPublisher<Pub>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Pub> Freeze for CommandPublisher<Pub>where
Pub: Freeze,
impl<Pub> RefUnwindSafe for CommandPublisher<Pub>where
Pub: RefUnwindSafe,
impl<Pub> Send for CommandPublisher<Pub>where
Pub: Send,
impl<Pub> Sync for CommandPublisher<Pub>where
Pub: Sync,
impl<Pub> Unpin for CommandPublisher<Pub>where
Pub: Unpin,
impl<Pub> UnwindSafe for CommandPublisher<Pub>where
Pub: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more