Headers

Trait Headers 

Source
pub trait Headers<Name: ?Sized, Value: ?Sized> {
    type N<'n>: Borrow<Name>
       where Self: 'n;
    type V<'n>: Borrow<Value>
       where Self: 'n;

    // Required method
    fn headers(&self) -> impl Iterator<Item = (Self::N<'_>, Self::V<'_>)>;
}

Required Associated Types§

Source

type N<'n>: Borrow<Name> where Self: 'n

Source

type V<'n>: Borrow<Value> where Self: 'n

Required Methods§

Source

fn headers(&self) -> impl Iterator<Item = (Self::N<'_>, Self::V<'_>)>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§