Struct ntex_mqtt::v5::control::Disconnect
source · pub struct Disconnect(/* private fields */);
Implementations§
source§impl Disconnect
impl Disconnect
sourcepub fn packet(&self) -> &Disconnect
pub fn packet(&self) -> &Disconnect
Returns reference to disconnect packet
sourcepub fn packet_size(&self) -> u32
pub fn packet_size(&self) -> u32
Returns size of the packet
sourcepub fn ack(self) -> ControlResult
pub fn ack(self) -> ControlResult
Ack disconnect message
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Disconnect
impl Send for Disconnect
impl Sync for Disconnect
impl Unpin for Disconnect
impl !UnwindSafe for Disconnect
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