pub struct ChannelClient { /* private fields */ }Expand description
Trait Implementations§
Source§impl Client for ChannelClient
impl Client for ChannelClient
Source§fn disconnect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn disconnect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Disconnects the client.
Source§fn publish_state_message<'life0, 'async_trait>(
&'life0 self,
topic: StateTopic,
payload: StatePayload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn publish_state_message<'life0, 'async_trait>(
&'life0 self,
topic: StateTopic,
payload: StatePayload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Publishes a state message to the specified state topic. Read more
Source§fn try_publish_state_message<'life0, 'async_trait>(
&'life0 self,
topic: StateTopic,
payload: StatePayload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn try_publish_state_message<'life0, 'async_trait>(
&'life0 self,
topic: StateTopic,
payload: StatePayload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Attempts to publish a state message to the specified state topic. Read more
Source§fn publish_node_message<'life0, 'async_trait>(
&'life0 self,
topic: NodeTopic,
payload: Payload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn publish_node_message<'life0, 'async_trait>(
&'life0 self,
topic: NodeTopic,
payload: Payload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Publishes a message to a node-specific topic. Read more
Source§fn try_publish_node_message<'life0, 'async_trait>(
&'life0 self,
topic: NodeTopic,
payload: Payload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn try_publish_node_message<'life0, 'async_trait>(
&'life0 self,
topic: NodeTopic,
payload: Payload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Attempts to publish a message to a node-specific topic. Read more
Source§fn publish_device_message<'life0, 'async_trait>(
&'life0 self,
topic: DeviceTopic,
payload: Payload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn publish_device_message<'life0, 'async_trait>(
&'life0 self,
topic: DeviceTopic,
payload: Payload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Publishes a message to a device-specific topic. Read more
Source§fn try_publish_device_message<'life0, 'async_trait>(
&'life0 self,
topic: DeviceTopic,
payload: Payload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn try_publish_device_message<'life0, 'async_trait>(
&'life0 self,
topic: DeviceTopic,
payload: Payload,
) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Attempts to publish a message to a device-specific topic. Read more
Source§impl Clone for ChannelClient
impl Clone for ChannelClient
Source§fn clone(&self) -> ChannelClient
fn clone(&self) -> ChannelClient
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 Freeze for ChannelClient
impl RefUnwindSafe for ChannelClient
impl Send for ChannelClient
impl Sync for ChannelClient
impl Unpin for ChannelClient
impl UnwindSafe for ChannelClient
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