pub struct PubRec { /* private fields */ }Expand description
Represents the packet ID PubRec packet
§Example
use mqute_codec::protocol::v4::PubRec;
let packet = PubRec::new(1024);
assert_eq!(packet.packet_id(), 1024);Implementations§
Trait Implementations§
impl Copy for PubRec
impl Eq for PubRec
impl StructuralPartialEq for PubRec
Auto Trait Implementations§
impl Freeze for PubRec
impl RefUnwindSafe for PubRec
impl Send for PubRec
impl Sync for PubRec
impl Unpin for PubRec
impl UnwindSafe for PubRec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Encoded for Twhere
T: Encode,
impl<T> Encoded for Twhere
T: Encode,
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Calculates the total encoded length of the packet. Read more