[][src]Struct sage_mqtt::PubRel

pub struct PubRel {
    pub packet_identifier: u16,
    pub reason_code: ReasonCode,
    pub reason_string: Option<String>,
    pub user_properties: Vec<(String, String)>,
}

Fields

packet_identifier: u16reason_code: ReasonCodereason_string: Option<String>user_properties: Vec<(String, String)>

Methods

impl PubRel[src]

pub fn write<W: Write>(self, writer: &mut W) -> SageResult<usize>[src]

pub fn read<R: Read>(reader: &mut R, shortened: bool) -> SageResult<Self>[src]

Trait Implementations

impl Clone for PubRel[src]

impl Debug for PubRel[src]

impl Default for PubRel[src]

impl PartialEq<PubRel> for PubRel[src]

impl StructuralPartialEq for PubRel[src]

Auto Trait Implementations

impl RefUnwindSafe for PubRel

impl Send for PubRel

impl Sync for PubRel

impl Unpin for PubRel

impl UnwindSafe for PubRel

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.