Trait rocket::http::hyper::header::Scheme

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

An Authorization scheme to be used in the header.

Required Methods§

source

fn scheme() -> Option<&'static str>

An optional Scheme name.

Will be replaced with an associated constant once available.

source

fn fmt_scheme(&self, _: &mut Formatter<'_>) -> Result<(), Error>

Format the Scheme data into a header value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Scheme for String

source§

fn scheme() -> Option<&'static str>

source§

fn fmt_scheme(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Implementors§