pub struct UnSubAck {
pub packet_identifier: u16,
pub reason_string: Option<String>,
pub user_properties: Vec<(String, String)>,
pub reason_codes: Vec<ReasonCode>,
}Expand description
An UnSubAck is sent by the server to acknowledge an unsubscribe request.
Fields§
§packet_identifier: u16The 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.
Trait Implementations§
impl StructuralPartialEq for UnSubAck
Auto Trait Implementations§
impl Freeze for UnSubAck
impl RefUnwindSafe for UnSubAck
impl Send for UnSubAck
impl Sync for UnSubAck
impl Unpin for UnSubAck
impl UnwindSafe for UnSubAck
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