pub struct Metadata {
pub entries: Vec<MetadataEntry>,
}
Fields
entries: Vec<MetadataEntry>
Implementations
sourceimpl Metadata
impl Metadata
pub fn new() -> Metadata
pub fn from_headers(headers: Headers) -> Result<Metadata, MetadataDecodeError>
pub fn into_headers(self) -> Headers
pub fn get<'a>(&'a self, name: &str) -> Option<&'a [u8]>
pub fn extend(&mut self, extend: Metadata)
pub fn add(&mut self, key: MetadataKey, value: Bytes)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more