Struct tungstenite::protocol::frame::CloseFrame [−][src]
Expand description
A struct representing the close command.
Fields
code: CloseCode
The reason as a code.
reason: Cow<'t, str>
The reason as text string.
Implementations
Convert into a owned string.
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<'t> RefUnwindSafe for CloseFrame<'t>
impl<'t> Send for CloseFrame<'t>
impl<'t> Sync for CloseFrame<'t>
impl<'t> Unpin for CloseFrame<'t>
impl<'t> UnwindSafe for CloseFrame<'t>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self