pub enum GatewayConnectOutcome {
Created,
AlreadyConnected,
Reconnected {
disconnected_for: u64,
},
ReplacedExpired {
disconnected_for: u64,
},
}Expand description
Result of connecting or reconnecting a client.
Variants§
Created
A new session entry was created.
AlreadyConnected
An already connected session was refreshed.
Reconnected
A disconnected session reconnected within its grace window.
ReplacedExpired
A stale disconnected session was replaced with a new generation.
Trait Implementations§
Source§impl Clone for GatewayConnectOutcome
impl Clone for GatewayConnectOutcome
Source§fn clone(&self) -> GatewayConnectOutcome
fn clone(&self) -> GatewayConnectOutcome
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 GatewayConnectOutcome
Source§impl Debug for GatewayConnectOutcome
impl Debug for GatewayConnectOutcome
impl Eq for GatewayConnectOutcome
Source§impl PartialEq for GatewayConnectOutcome
impl PartialEq for GatewayConnectOutcome
impl StructuralPartialEq for GatewayConnectOutcome
Auto Trait Implementations§
impl Freeze for GatewayConnectOutcome
impl RefUnwindSafe for GatewayConnectOutcome
impl Send for GatewayConnectOutcome
impl Sync for GatewayConnectOutcome
impl Unpin for GatewayConnectOutcome
impl UnsafeUnpin for GatewayConnectOutcome
impl UnwindSafe for GatewayConnectOutcome
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