pub struct SubscribeAck {
pub packet_id: NonZeroU16,
pub properties: UserProperties,
pub reason_string: Option<ByteString>,
pub status: Vec<SubscribeAckReason>,
}
Expand description
Represents SUBACK packet
Fields§
§packet_id: NonZeroU16
§properties: UserProperties
§reason_string: Option<ByteString>
§status: Vec<SubscribeAckReason>
corresponds to a Topic Filter in the SUBSCRIBE Packet being acknowledged.
Trait Implementations§
Source§impl Clone for SubscribeAck
impl Clone for SubscribeAck
Source§fn clone(&self) -> SubscribeAck
fn clone(&self) -> SubscribeAck
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SubscribeAck
impl Debug for SubscribeAck
Source§impl<'de> Deserialize<'de> for SubscribeAck
impl<'de> Deserialize<'de> for SubscribeAck
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SubscribeAck> for Packet
impl From<SubscribeAck> for Packet
Source§fn from(pkt: SubscribeAck) -> Self
fn from(pkt: SubscribeAck) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SubscribeAck
impl PartialEq for SubscribeAck
Source§impl Serialize for SubscribeAck
impl Serialize for SubscribeAck
impl Eq for SubscribeAck
impl StructuralPartialEq for SubscribeAck
Auto Trait Implementations§
impl !Freeze for SubscribeAck
impl RefUnwindSafe for SubscribeAck
impl Send for SubscribeAck
impl Sync for SubscribeAck
impl Unpin for SubscribeAck
impl UnwindSafe for SubscribeAck
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