Struct ratchet_rs::CloseReason [−][src]
Expand description
A reason for closing the WebSocket connection.
Fields
code: CloseCode
The code to close the connection with.
description: Option<String>
An optional message to close the connection with.
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnwindSafe for CloseReason
Blanket Implementations
Mutably borrows from an owned value. Read more