Struct tungstenite::protocol::frame::CloseFrame
source · 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§
source§impl<'t> CloseFrame<'t>
impl<'t> CloseFrame<'t>
sourcepub fn into_owned(self) -> CloseFrame<'static>
pub fn into_owned(self) -> CloseFrame<'static>
Convert into a owned string.
Trait Implementations§
source§impl<'t> Clone for CloseFrame<'t>
impl<'t> Clone for CloseFrame<'t>
source§fn clone(&self) -> CloseFrame<'t>
fn clone(&self) -> CloseFrame<'t>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more