pub struct Client { /* private fields */ }Expand description
A srad_client::Client implementation using rumqttc
Trait Implementations§
Source§impl Client for Client
impl Client for Client
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
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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