Enum saltyrtc_client::CloseCode[][src]

pub enum CloseCode {
    WsClosingNormal,
    WsGoingAway,
    WsProtocolError,
    PathFull,
    ProtocolError,
    InternalError,
    Handover,
    DroppedByInitiator,
    InitiatorCouldNotDecrypt,
    NoSharedTask,
    InvalidKey,
    Other(u16),
}

Close codes used by SaltyRTC.

Variants

Websocket closed successfully (WebSocket internal close code)

Going away (WebSocket internal close code)

Protocol error (WebSocket internal close code)

Path full

SaltyRTC protocol error

Internal error

Handover of the signalling channel

Dropped by initiator

Initiator could not decrypt

No shared task found

Invalid key

Other close code

Methods

impl CloseCode
[src]

Return the numeric close code.

Create a CloseCode instance from a numeric close code.

Trait Implementations

impl Debug for CloseCode
[src]

Formats the value using the given formatter. Read more

impl Copy for CloseCode
[src]

impl Clone for CloseCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for CloseCode
[src]

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

This method tests for !=.

impl Eq for CloseCode
[src]

impl Display for CloseCode
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for CloseCode

impl Sync for CloseCode