pub trait TypedHeader {
    // Required methods
    fn name() -> &'static str;
    fn encode(&self, map: &mut HeaderMap);
    fn decode(from: &str) -> Result<Self, Error>
       where Self: Sized;

    // Provided method
    fn encode_to_string(&self) -> Vec<String> { ... }
}

Required Methods§

source

fn name() -> &'static str

source

fn encode(&self, map: &mut HeaderMap)

source

fn decode(from: &str) -> Result<Self, Error>where Self: Sized,

Provided Methods§

Implementors§