pub enum SessionState {
AwaitingHello,
Live,
}Expand description
How far a socket session has got. Two states, because there are two: a peer that has not identified itself, and one that has.
Variants§
Trait Implementations§
Source§impl Clone for SessionState
impl Clone for SessionState
impl Copy for SessionState
Source§impl Debug for SessionState
impl Debug for SessionState
impl Eq for SessionState
Source§impl PartialEq for SessionState
impl PartialEq for SessionState
impl StructuralPartialEq for SessionState
Auto Trait Implementations§
impl Freeze for SessionState
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnsafeUnpin for SessionState
impl UnwindSafe for SessionState
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