Struct cocaine::hpack::Header
[−]
[src]
pub struct Header { pub name: Cow<'static, [u8]>, pub data: Cow<'static, [u8]>, }
Fields
name: Cow<'static, [u8]>
data: Cow<'static, [u8]>
Methods
impl Header
[src]
fn new<N, V>(name: N, data: V) -> Self where
N: Into<Cow<'static, [u8]>>,
V: Into<Cow<'static, [u8]>>,
N: Into<Cow<'static, [u8]>>,
V: Into<Cow<'static, [u8]>>,
Trait Implementations
impl Clone for Header
[src]
fn clone(&self) -> Header
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more