pub struct DisconnectProperties {
pub session_expiry_interval: Option<u32>,
pub reason_string: Option<String>,
pub user_properties: Vec<(String, String)>,
pub server_reference: Option<String>,
}
Fields§
§session_expiry_interval: Option<u32>
Session Expiry Interval in seconds
reason_string: Option<String>
Human readable reason for the disconnect
user_properties: Vec<(String, String)>
List of user properties
server_reference: Option<String>
String which can be used by the Client to identify another Server to use.
Implementations§
Trait Implementations§
Source§impl Clone for DisconnectProperties
impl Clone for DisconnectProperties
Source§fn clone(&self) -> DisconnectProperties
fn clone(&self) -> DisconnectProperties
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 DisconnectProperties
impl Debug for DisconnectProperties
Source§impl PartialEq for DisconnectProperties
impl PartialEq for DisconnectProperties
impl Eq for DisconnectProperties
impl StructuralPartialEq for DisconnectProperties
Auto Trait Implementations§
impl Freeze for DisconnectProperties
impl RefUnwindSafe for DisconnectProperties
impl Send for DisconnectProperties
impl Sync for DisconnectProperties
impl Unpin for DisconnectProperties
impl UnwindSafe for DisconnectProperties
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