[][src]Trait websocket::header::Scheme

pub trait Scheme: Send + Sync + Clone + FromStr + Debug {
    fn scheme() -> Option<&'static str>;
fn fmt_scheme(&self, &mut Formatter) -> Result<(), Error>; }

An Authorization scheme to be used in the header.

Required Methods

An optional Scheme name.

Will be replaced with an associated constant once available.

Format the Scheme data into a header value.

Implementations on Foreign Types

impl Scheme for String
[src]

Implementors

impl Scheme for Basic
[src]

impl Scheme for Bearer
[src]