[−][src]Struct mosquitto_rs::ConnectionStatus
Represents the status of the connection attempt.
The embedded status code value depends on the protocol version
that was setup for the client.
For MQTT v5.0, look at section 3.2.2.2 Connect Reason code: https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html
For MQTT v3.1.1, look at section 3.2.2.3 Connect Return code: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-v3.1.1.html
Use the is_successful
method to test whether the connection was
successfully initiated.
Implementations
impl ConnectionStatus
[src]
pub fn is_successful(&self) -> bool
[src]
Returns true if the connection attempt was successful.
Trait Implementations
impl Clone for ConnectionStatus
[src]
pub fn clone(&self) -> ConnectionStatus
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ConnectionStatus
[src]
impl Debug for ConnectionStatus
[src]
impl Display for ConnectionStatus
[src]
impl Eq for ConnectionStatus
[src]
impl PartialEq<ConnectionStatus> for ConnectionStatus
[src]
pub fn eq(&self, other: &ConnectionStatus) -> bool
[src]
pub fn ne(&self, other: &ConnectionStatus) -> bool
[src]
impl StructuralEq for ConnectionStatus
[src]
impl StructuralPartialEq for ConnectionStatus
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConnectionStatus
[src]
impl Send for ConnectionStatus
[src]
impl Sync for ConnectionStatus
[src]
impl Unpin for ConnectionStatus
[src]
impl UnwindSafe for ConnectionStatus
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,