Enum wisp_mux::CloseReason 
source · pub enum CloseReason {
    Unknown = 1,
    Voluntary = 2,
    Unexpected = 3,
    IncompatibleExtensions = 4,
    ServerStreamInvalidInfo = 65,
    ServerStreamUnreachable = 66,
    ServerStreamConnectionTimedOut = 67,
    ServerStreamConnectionRefused = 68,
    ServerStreamTimedOut = 71,
    ServerStreamBlockedAddress = 72,
    ServerStreamThrottled = 73,
    ClientUnexpected = 129,
}Expand description
Close reason.
See the docs
Variants§
Unknown = 1
Reason unspecified or unknown.
Voluntary = 2
Voluntary stream closure.
Unexpected = 3
Unexpected stream closure due to a network error.
IncompatibleExtensions = 4
Incompatible extensions. Only used during the handshake.
ServerStreamInvalidInfo = 65
Stream creation failed due to invalid information.
ServerStreamUnreachable = 66
Stream creation failed due to an unreachable destination host.
ServerStreamConnectionTimedOut = 67
Stream creation timed out due to the destination server not responding.
ServerStreamConnectionRefused = 68
Stream creation failed due to the destination server refusing the connection.
ServerStreamTimedOut = 71
TCP data transfer timed out.
ServerStreamBlockedAddress = 72
Stream destination address/domain is intentionally blocked by the proxy server.
ServerStreamThrottled = 73
Connection throttled by the server.
ClientUnexpected = 129
The client has encountered an unexpected error.
Trait Implementations§
source§impl Clone for CloseReason
 
impl Clone for CloseReason
source§fn clone(&self) -> CloseReason
 
fn clone(&self) -> CloseReason
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for CloseReason
 
impl Debug for CloseReason
source§impl PartialEq for CloseReason
 
impl PartialEq for CloseReason
source§fn eq(&self, other: &CloseReason) -> bool
 
fn eq(&self, other: &CloseReason) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl TryFrom<u8> for CloseReason
 
impl TryFrom<u8> for CloseReason
impl Copy for CloseReason
impl StructuralPartialEq for CloseReason
Auto Trait Implementations§
impl Freeze for CloseReason
impl RefUnwindSafe for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnwindSafe for CloseReason
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
source§impl<T> CloneToUninit for Twhere
    T: Copy,
 
impl<T> CloneToUninit for Twhere
    T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)