quiche::h3

Trait NameValue

Source
pub trait NameValue {
    // Required methods
    fn name(&self) -> &[u8] ;
    fn value(&self) -> &[u8] ;
}
Expand description

A trait for types with associated string name and value.

Required Methods§

Source

fn name(&self) -> &[u8]

Returns the object’s name.

Source

fn value(&self) -> &[u8]

Returns the object’s value.

Implementations on Foreign Types§

Source§

impl<N, V> NameValue for (N, V)
where N: AsRef<[u8]>, V: AsRef<[u8]>,

Source§

fn name(&self) -> &[u8]

Source§

fn value(&self) -> &[u8]

Implementors§