Struct tungstenite::protocol::CloseFrame [−][src]
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]
impl<'t> CloseFrame<'t>
pub fn into_owned(self) -> CloseFrame<'static>
[src]
pub fn into_owned(self) -> CloseFrame<'static>
Convert into a owned string.
Trait Implementations
impl<'t> Debug for CloseFrame<'t>
[src]
impl<'t> Debug for CloseFrame<'t>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'t> Clone for CloseFrame<'t>
[src]
impl<'t> Clone for CloseFrame<'t>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'t> Display for CloseFrame<'t>
[src]
impl<'t> Display for CloseFrame<'t>
Auto Trait Implementations
impl<'t> Send for CloseFrame<'t>
impl<'t> Send for CloseFrame<'t>
impl<'t> Sync for CloseFrame<'t>
impl<'t> Sync for CloseFrame<'t>