pub struct SubAck {
pub packet_identifier: u16,
pub user_properties: Vec<(String, String)>,
pub reason_codes: Vec<ReasonCode>,
}
Expand description
The SubAck
packet is sent by a server to confirm a Subscribe
has been
received and processed.
Fields§
§packet_identifier: u16
The packet identifier is used to identify the message throughout the communication.
user_properties: Vec<(String, String)>
User defined properties
reason_codes: Vec<ReasonCode>
The reason codes. The array contains one ReasonCode
per subscription.
The indices in this array match the incides in the Subscribe
’s
subscriptions array.
Trait Implementations§
impl StructuralPartialEq for SubAck
Auto Trait Implementations§
impl Freeze for SubAck
impl RefUnwindSafe for SubAck
impl Send for SubAck
impl Sync for SubAck
impl Unpin for SubAck
impl UnwindSafe for SubAck
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