pub struct ReturnPath(/* private fields */);Expand description
Lightweight Return-Path header wrapper.
Implementations§
Source§impl ReturnPath
impl ReturnPath
Sourcepub fn new(value: impl AsRef<str>) -> Result<ReturnPath, HeaderParseError>
pub fn new(value: impl AsRef<str>) -> Result<ReturnPath, HeaderParseError>
Creates a typed header wrapper.
Sourcepub const fn value(&self) -> &HeaderValue
pub const fn value(&self) -> &HeaderValue
Returns the header value.
Sourcepub fn field(&self) -> HeaderField
pub fn field(&self) -> HeaderField
Converts this wrapper into a header field.
Trait Implementations§
Source§impl Clone for ReturnPath
impl Clone for ReturnPath
Source§fn clone(&self) -> ReturnPath
fn clone(&self) -> ReturnPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReturnPath
impl Debug for ReturnPath
Source§impl Display for ReturnPath
impl Display for ReturnPath
Source§impl Hash for ReturnPath
impl Hash for ReturnPath
Source§impl Ord for ReturnPath
impl Ord for ReturnPath
Source§fn cmp(&self, other: &ReturnPath) -> Ordering
fn cmp(&self, other: &ReturnPath) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReturnPath
impl PartialEq for ReturnPath
Source§fn eq(&self, other: &ReturnPath) -> bool
fn eq(&self, other: &ReturnPath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ReturnPath
impl PartialOrd for ReturnPath
impl Eq for ReturnPath
impl StructuralPartialEq for ReturnPath
Auto Trait Implementations§
impl Freeze for ReturnPath
impl RefUnwindSafe for ReturnPath
impl Send for ReturnPath
impl Sync for ReturnPath
impl Unpin for ReturnPath
impl UnsafeUnpin for ReturnPath
impl UnwindSafe for ReturnPath
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