Struct trillium::HeaderName [−][src]
pub struct HeaderName<'a>(_);
Expand description
The name of a http header. This can be either a
KnownHeaderName
or a string representation of an unknown
header.
Implementations
Convert a potentially-borrowed headername to a static headername by value.
Convert a potentially-borrowed headername to a static
headername by cloning if needed from a borrow. If you have
ownership of a headername with a non-static lifetime, it is
preferable to use into_owned. This is the equivalent of
self.clone().into_owned()
.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for HeaderName<'a>
impl<'a> Send for HeaderName<'a>
impl<'a> Sync for HeaderName<'a>
impl<'a> Unpin for HeaderName<'a>
impl<'a> UnwindSafe for HeaderName<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more