Struct Received
pub struct Received(/* private fields */);Expand description
Lightweight Received header wrapper.
Implementations§
§impl Received
impl Received
pub fn new(value: impl AsRef<str>) -> Result<Received, HeaderParseError>
pub fn new(value: impl AsRef<str>) -> Result<Received, HeaderParseError>
Creates a typed header wrapper.
pub const fn value(&self) -> &HeaderValue
pub const fn value(&self) -> &HeaderValue
Returns the header value.
pub fn field(&self) -> HeaderField
pub fn field(&self) -> HeaderField
Converts this wrapper into a header field.
Trait Implementations§
§impl Ord for Received
impl Ord for Received
§impl PartialOrd for Received
impl PartialOrd for Received
impl Eq for Received
impl StructuralPartialEq for Received
Auto Trait Implementations§
impl Freeze for Received
impl RefUnwindSafe for Received
impl Send for Received
impl Sync for Received
impl Unpin for Received
impl UnsafeUnpin for Received
impl UnwindSafe for Received
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more