pub enum CloseMsg {
Normal(u16, CloseReason),
Abnormal(u16),
}Expand description
Connection with remote was closed.
Variants§
Normal(u16, CloseReason)
Transport was gracefully closed by remote.
Determines by close code 1000 and existence of
CloseByServerReason.
Abnormal(u16)
Connection was unexpectedly closed. Consider reconnecting.
Unexpected close determines by non-1000 close code and for close code
1000 without reason.
Trait Implementations§
impl Copy for CloseMsg
impl Eq for CloseMsg
impl StructuralPartialEq for CloseMsg
Auto Trait Implementations§
impl Freeze for CloseMsg
impl RefUnwindSafe for CloseMsg
impl Send for CloseMsg
impl Sync for CloseMsg
impl Unpin for CloseMsg
impl UnwindSafe for CloseMsg
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