Struct ReturnPath
pub struct ReturnPath(/* private fields */);Expand description
Lightweight Return-Path header wrapper.
Implementations§
§impl ReturnPath
impl ReturnPath
pub fn new(value: impl AsRef<str>) -> Result<ReturnPath, HeaderParseError>
pub fn new(value: impl AsRef<str>) -> Result<ReturnPath, 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 Clone for ReturnPath
impl Clone for ReturnPath
§fn clone(&self) -> ReturnPath
fn clone(&self) -> ReturnPath
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ReturnPath
impl Debug for ReturnPath
§impl Display for ReturnPath
impl Display for ReturnPath
§impl Hash for ReturnPath
impl Hash for ReturnPath
§impl Ord for ReturnPath
impl Ord for ReturnPath
§impl PartialEq for ReturnPath
impl PartialEq for ReturnPath
§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