Struct cocaine::hpack::RawHeader [−][src]
Raw HPACK header.
Fields
name: Cow<'static, [u8]>
Header name.
data: Cow<'static, [u8]>
Header value.
Methods
impl RawHeader
[src]
impl RawHeader
pub fn new<N, V>(name: N, data: V) -> Self where
N: Into<Cow<'static, [u8]>>,
V: Into<Cow<'static, [u8]>>,
[src]
pub fn new<N, V>(name: N, data: V) -> Self where
N: Into<Cow<'static, [u8]>>,
V: Into<Cow<'static, [u8]>>,
Constructs a raw HPACK header using the specified name and value.
Trait Implementations
impl Clone for RawHeader
[src]
impl Clone for RawHeader
fn clone(&self) -> RawHeader
[src]
fn clone(&self) -> RawHeader
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for RawHeader
[src]
impl Debug for RawHeader
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for RawHeader
[src]
impl PartialEq for RawHeader