pub struct PubRel { /* private fields */ }Expand description
Represents the packet ID PubRel packet
§Example
use mqute_codec::protocol::v4::PubRel;
let packet = PubRel::new(1024);
assert_eq!(packet.packet_id(), 1024);Implementations§
Trait Implementations§
impl Copy for PubRel
impl Eq for PubRel
impl StructuralPartialEq for PubRel
Auto Trait Implementations§
impl Freeze for PubRel
impl RefUnwindSafe for PubRel
impl Send for PubRel
impl Sync for PubRel
impl Unpin for PubRel
impl UnwindSafe for PubRel
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