Struct tungstenite::protocol::CloseFrame [] [src]

pub struct CloseFrame<'t> {
    pub code: CloseCode,
    pub reason: Cow<'t, str>,
}

A struct representing the close command.

Fields

The reason as a code.

The reason as text string.

Methods

impl<'t> CloseFrame<'t>
[src]

Convert into a owned string.

Trait Implementations

impl<'t> Debug for CloseFrame<'t>
[src]

Formats the value using the given formatter.

impl<'t> Clone for CloseFrame<'t>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'t> Display for CloseFrame<'t>
[src]

Formats the value using the given formatter. Read more