[−][src]Struct sage_mqtt::UnSubAck
An UnSubAck
is sent by the server to acknowledge an unsubscribe request.
Fields
packet_identifier: u16
The packet identifier is used to identify the message throughout the communication
reason_string: Option<String>
An optional description of the acknowledgement.
user_properties: Vec<(String, String)>
General purpose user-defined properties
reason_codes: Vec<ReasonCode>
A list of reason codes ackowledging the unsubscribtion.
Each ReasonCode
at a given index correspond to a unsubscribe request
from the Unsubscribe
packet at the same index.
Implementations
impl UnSubAck
[src]
pub async fn write<'_, W: AsyncWrite + Unpin>(
self,
writer: &'_ mut W
) -> SageResult<usize>
[src]
self,
writer: &'_ mut W
) -> SageResult<usize>
Write the UnSubAck
body of a packet, returning the written size in bytes
in case of success.
pub async fn read<'_, R: AsyncRead + Unpin>(
reader: &'_ mut R,
remaining_size: usize
) -> SageResult<Self>
[src]
reader: &'_ mut R,
remaining_size: usize
) -> SageResult<Self>
Read the UnSubAck
body from reader
, retuning it in case of success.
Trait Implementations
impl Clone for UnSubAck
[src]
impl Debug for UnSubAck
[src]
impl Default for UnSubAck
[src]
impl PartialEq<UnSubAck> for UnSubAck
[src]
impl StructuralPartialEq for UnSubAck
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnSubAck
impl Send for UnSubAck
impl Sync for UnSubAck
impl Unpin for UnSubAck
impl UnwindSafe for UnSubAck
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>,