Struct tungstenite::protocol::frame::CloseFrame
[−]
[src]
pub struct CloseFrame<'t> { pub code: CloseCode, pub reason: Cow<'t, str>, }
A struct representing the close command.
Fields
code: CloseCode
The reason as a code.
reason: Cow<'t, str>
The reason as text string.
Methods
impl<'t> CloseFrame<'t>
[src]
fn into_owned(self) -> CloseFrame<'static>
Convert into a owned string.
Trait Implementations
impl<'t> Debug for CloseFrame<'t>
[src]
impl<'t> Clone for CloseFrame<'t>
[src]
fn clone(&self) -> CloseFrame<'t>
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