Enum saltyrtc_client::CloseCode
source · [−]pub enum CloseCode {
Show 13 variants
WsClosingNormal,
WsGoingAway,
WsProtocolError,
PathFull,
ProtocolError,
InternalError,
Handover,
DroppedByInitiator,
InitiatorCouldNotDecrypt,
NoSharedTask,
InvalidKey,
Timeout,
Other(u16),
}
Expand description
Close codes used by SaltyRTC.
Variants
WsClosingNormal
Websocket closed successfully (WebSocket internal close code)
WsGoingAway
Going away (WebSocket internal close code)
WsProtocolError
Protocol error (WebSocket internal close code)
PathFull
Path full
ProtocolError
SaltyRTC protocol error
InternalError
Internal error
Handover
Handover of the signalling channel
DroppedByInitiator
Dropped by initiator
InitiatorCouldNotDecrypt
Initiator could not decrypt
NoSharedTask
No shared task found
InvalidKey
Invalid key
Timeout
Timeout
Other(u16)
Other close code
Implementations
Trait Implementations
impl Copy for CloseCode
impl Eq for CloseCode
impl StructuralEq for CloseCode
impl StructuralPartialEq for CloseCode
Auto Trait Implementations
impl RefUnwindSafe for CloseCode
impl Send for CloseCode
impl Sync for CloseCode
impl Unpin for CloseCode
impl UnwindSafe for CloseCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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