pub struct DisconnectPacket {
pub reason_code: DisconnectReason,
pub session_expiry_interval: Option<SessionExpiryInterval>,
pub reason_string: Option<ReasonString>,
pub user_properties: Vec<UserProperty>,
pub server_reference: Option<ServerReference>,
}
Fields§
§reason_code: DisconnectReason
§session_expiry_interval: Option<SessionExpiryInterval>
§reason_string: Option<ReasonString>
§user_properties: Vec<UserProperty>
§server_reference: Option<ServerReference>
Trait Implementations§
Source§impl Debug for DisconnectPacket
impl Debug for DisconnectPacket
Source§impl PartialEq for DisconnectPacket
impl PartialEq for DisconnectPacket
Source§impl PropertySize for DisconnectPacket
impl PropertySize for DisconnectPacket
fn property_size(&self, protocol_version: ProtocolVersion) -> u32
impl StructuralPartialEq for DisconnectPacket
Auto Trait Implementations§
impl Freeze for DisconnectPacket
impl RefUnwindSafe for DisconnectPacket
impl Send for DisconnectPacket
impl Sync for DisconnectPacket
impl Unpin for DisconnectPacket
impl UnwindSafe for DisconnectPacket
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