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.
Implementations
impl<'t> CloseFrame<'t>
[src]
impl<'t> CloseFrame<'t>
[src]pub fn into_owned(self) -> CloseFrame<'static>
[src]
Convert into a owned string.
Trait Implementations
impl<'t> Clone for CloseFrame<'t>
[src]
impl<'t> Clone for CloseFrame<'t>
[src]fn clone(&self) -> CloseFrame<'t>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'t> PartialEq<CloseFrame<'t>> for CloseFrame<'t>
[src]
impl<'t> PartialEq<CloseFrame<'t>> for CloseFrame<'t>
[src]