Struct ReplyTo
pub struct ReplyTo(/* private fields */);Expand description
Lightweight Reply-To header wrapper.
Implementations§
§impl ReplyTo
impl ReplyTo
pub fn new(value: impl AsRef<str>) -> Result<ReplyTo, HeaderParseError>
pub fn new(value: impl AsRef<str>) -> Result<ReplyTo, 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 ReplyTo
impl Ord for ReplyTo
§impl PartialOrd for ReplyTo
impl PartialOrd for ReplyTo
impl Eq for ReplyTo
impl StructuralPartialEq for ReplyTo
Auto Trait Implementations§
impl Freeze for ReplyTo
impl RefUnwindSafe for ReplyTo
impl Send for ReplyTo
impl Sync for ReplyTo
impl Unpin for ReplyTo
impl UnsafeUnpin for ReplyTo
impl UnwindSafe for ReplyTo
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