Enum ratchet_rs::CloseState
source · [−]pub enum CloseState {
NotClosed,
Closing,
Closed,
}
Expand description
Denotes the current state of a WebSocket session.
Variants
NotClosed
The session is active.
Closing
Either a user or peer requested closure of the session has been requested.
Closed
The WebSocket session is closed.
Trait Implementations
sourceimpl Clone for CloseState
impl Clone for CloseState
sourcefn clone(&self) -> CloseState
fn clone(&self) -> CloseState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CloseState
impl Debug for CloseState
sourceimpl PartialEq<CloseState> for CloseState
impl PartialEq<CloseState> for CloseState
impl Copy for CloseState
impl StructuralPartialEq for CloseState
Auto Trait Implementations
impl RefUnwindSafe for CloseState
impl Send for CloseState
impl Sync for CloseState
impl Unpin for CloseState
impl UnwindSafe for CloseState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more