[−][src]Struct rumqttc::MqttState
State of the mqtt connection.
Fields
connection_status: MqttConnectionStatus
Connection status
await_pingresp: bool
Status of last ping
last_incoming: Instant
Last incoming packet time
last_outgoing: Instant
Last outgoing packet time
last_pkid: u16
Packet id of the last outgoing packet
outgoing_pub: VecDeque<Publish>
Outgoing QoS 1, 2 publishes which aren't acked yet
outgoing_rel: VecDeque<u16>
Packet ids of released QoS 2 publishes
incoming_pub: VecDeque<u16>
Packet ids on incoming QoS 2 publishes
Implementations
impl MqttState
[src]
pub fn new() -> Self
[src]
Creates new mqtt state. Same state should be used during a connection for persistent sessions while new state should instantiated for clean sessions
pub fn handle_outgoing_connect(&mut self) -> Result<(), StateError>
[src]
pub fn handle_incoming_connack(
&mut self,
packet: Packet
) -> Result<(), StateError>
[src]
&mut self,
packet: Packet
) -> Result<(), StateError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MqttState
impl Send for MqttState
impl Sync for MqttState
impl Unpin for MqttState
impl UnwindSafe for MqttState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,