pub struct MessageIdHeader(/* private fields */);Expand description
Lightweight Message-ID header wrapper.
Implementations§
Source§impl MessageIdHeader
impl MessageIdHeader
Sourcepub fn new(value: impl AsRef<str>) -> Result<MessageIdHeader, HeaderParseError>
pub fn new(value: impl AsRef<str>) -> Result<MessageIdHeader, 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 MessageIdHeader
impl Clone for MessageIdHeader
Source§fn clone(&self) -> MessageIdHeader
fn clone(&self) -> MessageIdHeader
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 MessageIdHeader
impl Debug for MessageIdHeader
Source§impl Display for MessageIdHeader
impl Display for MessageIdHeader
Source§impl Hash for MessageIdHeader
impl Hash for MessageIdHeader
Source§impl Ord for MessageIdHeader
impl Ord for MessageIdHeader
Source§fn cmp(&self, other: &MessageIdHeader) -> Ordering
fn cmp(&self, other: &MessageIdHeader) -> 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 MessageIdHeader
impl PartialEq for MessageIdHeader
Source§fn eq(&self, other: &MessageIdHeader) -> bool
fn eq(&self, other: &MessageIdHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MessageIdHeader
impl PartialOrd for MessageIdHeader
impl Eq for MessageIdHeader
impl StructuralPartialEq for MessageIdHeader
Auto Trait Implementations§
impl Freeze for MessageIdHeader
impl RefUnwindSafe for MessageIdHeader
impl Send for MessageIdHeader
impl Sync for MessageIdHeader
impl Unpin for MessageIdHeader
impl UnsafeUnpin for MessageIdHeader
impl UnwindSafe for MessageIdHeader
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