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

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

A WebSocket extension

Fields

The name of this extension

The parameters for this extension

Methods

impl Extension
[src]

Creates a new extension with the given name

Trait Implementations

impl PartialEq for Extension
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Extension
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Extension
[src]

Formats the value using the given formatter.

impl FromStr for Extension
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for Extension
[src]

Formats the value using the given formatter. Read more