Enum ws::CloseCode [] [src]

pub enum CloseCode {
    Normal,
    Away,
    Protocol,
    Unsupported,
    Status,
    Abnormal,
    Invalid,
    Policy,
    Size,
    Extension,
    Error,
    Restart,
    Again,
    Tls,
    Empty,
    Other(u16),
}

Variants

NormalAwayProtocolUnsupportedStatusAbnormalInvalidPolicySizeExtensionErrorRestartAgainTlsEmptyOther(u16)

Trait Implementations

impl Copy for CloseCode
[src]

impl Clone for CloseCode
[src]

fn clone(&self) -> CloseCode

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl PartialEq for CloseCode
[src]

fn eq(&self, __arg_0: &CloseCode) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &CloseCode) -> bool

This method tests for !=.

impl Eq for CloseCode
[src]

impl Debug for CloseCode
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Into<u16> for CloseCode
[src]

fn into(self) -> u16

Performs the conversion.

impl From<u16> for CloseCode
[src]

fn from(be_u16: u16) -> CloseCode

Performs the conversion.