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

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

A WebSocket extension

Fields

name

The name of this extension

params

The parameters for this extension

Methods

impl Extension

fn new(name: String) -> Extension

Creates a new extension with the given name

Trait Implementations

impl FromStr for Extension

type Err = WebSocketError

fn from_str(s: &str) -> WebSocketResult<Extension>

impl Display for Extension

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for Extension

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Extension

fn clone(&self) -> Extension

1.0.0fn clone_from(&mut self, source: &Self)

impl PartialEq for Extension

fn eq(&self, __arg_0: &Extension) -> bool

fn ne(&self, __arg_0: &Extension) -> bool