Struct SimplePublisher
pub struct SimplePublisher {}Expand description
Simple publisher implementation
Implementations§
§impl SimplePublisher
impl SimplePublisher
pub fn new() -> SimplePublisher
pub fn new() -> SimplePublisher
Create a new simple publisher
Trait Implementations§
§impl Debug for SimplePublisher
impl Debug for SimplePublisher
§impl Publisher for SimplePublisher
impl Publisher for SimplePublisher
§fn publish_text(&self, _topic: &str, _content: &str) -> Result<(), NerveError>
fn publish_text(&self, _topic: &str, _content: &str) -> Result<(), NerveError>
Publish a text message
§fn publish_binary(&self, _topic: &str, _data: &[u8]) -> Result<(), NerveError>
fn publish_binary(&self, _topic: &str, _data: &[u8]) -> Result<(), NerveError>
Publish a binary message
§fn publish_structured(
&self,
_topic: &str,
_value: Value,
) -> Result<(), NerveError>
fn publish_structured( &self, _topic: &str, _value: Value, ) -> Result<(), NerveError>
Publish a structured message
§fn publish_control(
&self,
_topic: &str,
_command: &str,
_parameters: Value,
) -> Result<(), NerveError>
fn publish_control( &self, _topic: &str, _command: &str, _parameters: Value, ) -> Result<(), NerveError>
Publish a control message
§fn statistics(&self) -> PublishingStatistics
fn statistics(&self) -> PublishingStatistics
Get publishing statistics
Auto Trait Implementations§
impl Freeze for SimplePublisher
impl RefUnwindSafe for SimplePublisher
impl Send for SimplePublisher
impl Sync for SimplePublisher
impl Unpin for SimplePublisher
impl UnwindSafe for SimplePublisher
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