Struct tungstenite::protocol::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.

Implementations

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> Debug for CloseFrame<'t>[src]

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

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

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

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

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

Auto Trait Implementations

impl<'t> RefUnwindSafe for CloseFrame<'t>

impl<'t> Send for CloseFrame<'t>

impl<'t> Sync for CloseFrame<'t>

impl<'t> Unpin for CloseFrame<'t>

impl<'t> UnwindSafe for CloseFrame<'t>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]