pub enum GatewaySessionState {
Connected,
Disconnected {
since: Tick,
},
}Expand description
Session connection state.
Variants§
Connected
Client is connected and may submit commands.
Disconnected
Client disconnected and may reconnect until the grace window expires.
Trait Implementations§
Source§impl Clone for GatewaySessionState
impl Clone for GatewaySessionState
Source§fn clone(&self) -> GatewaySessionState
fn clone(&self) -> GatewaySessionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GatewaySessionState
Source§impl Debug for GatewaySessionState
impl Debug for GatewaySessionState
impl Eq for GatewaySessionState
Source§impl PartialEq for GatewaySessionState
impl PartialEq for GatewaySessionState
impl StructuralPartialEq for GatewaySessionState
Auto Trait Implementations§
impl Freeze for GatewaySessionState
impl RefUnwindSafe for GatewaySessionState
impl Send for GatewaySessionState
impl Sync for GatewaySessionState
impl Unpin for GatewaySessionState
impl UnsafeUnpin for GatewaySessionState
impl UnwindSafe for GatewaySessionState
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