[][src]Struct websocket::header::extensions::Extension

pub struct Extension {
    pub name: String,
    pub params: Vec<Parameter>,
}

A WebSocket extension

Fields

name: String

The name of this extension

params: Vec<Parameter>

The parameters for this extension

Methods

impl Extension[src]

pub fn new(name: String) -> Extension[src]

Creates a new extension with the given name

Trait Implementations

impl Clone for Extension[src]

impl PartialEq<Extension> for Extension[src]

impl Display for Extension[src]

impl Debug for Extension[src]

impl FromStr for Extension[src]

type Err = WebSocketError

The associated error which can be returned from parsing.

impl StructuralPartialEq for Extension[src]

Auto Trait Implementations

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,