pub enum SessionExpiryInterval {
EndOnDisconnect,
NeverEnd,
Seconds(u32),
}Expand description
The handling of a session after a disconnection.
Variants§
EndOnDisconnect
The session ends the moment a DISCONNECT packet is sent or the network connection closes.
NeverEnd
The session is not ended under any circumstances.
Seconds(u32)
The session ends after this many seconds have passed after a DISCONNECT packet is sent or the network connection closes.
Trait Implementations§
Source§impl Clone for SessionExpiryInterval
impl Clone for SessionExpiryInterval
Source§fn clone(&self) -> SessionExpiryInterval
fn clone(&self) -> SessionExpiryInterval
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 SessionExpiryInterval
impl Debug for SessionExpiryInterval
Source§impl Default for SessionExpiryInterval
impl Default for SessionExpiryInterval
Source§fn default() -> SessionExpiryInterval
fn default() -> SessionExpiryInterval
Returns the “default value” for a type. Read more
Source§impl PartialEq for SessionExpiryInterval
impl PartialEq for SessionExpiryInterval
impl Copy for SessionExpiryInterval
impl Eq for SessionExpiryInterval
impl StructuralPartialEq for SessionExpiryInterval
Auto Trait Implementations§
impl Freeze for SessionExpiryInterval
impl RefUnwindSafe for SessionExpiryInterval
impl Send for SessionExpiryInterval
impl Sync for SessionExpiryInterval
impl Unpin for SessionExpiryInterval
impl UnsafeUnpin for SessionExpiryInterval
impl UnwindSafe for SessionExpiryInterval
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