pub struct MsgId<'a> {
pub left: &'a [u8],
pub right: &'a [u8],
}Expand description
A message identifier: "<" id-left "@" id-right ">".
§Examples
let id = parse_net::mail::parse_msg_id(b"<abc.123@[192.0.2.1]>")?;
assert_eq!((id.left, id.right), (&b"abc.123"[..], &b"[192.0.2.1]"[..]));Fields§
§left: &'a [u8]The part before @.
right: &'a [u8]The part after @ (a domain literal keeps its brackets).
Trait Implementations§
impl<'a> Copy for MsgId<'a>
impl<'a> Eq for MsgId<'a>
impl<'a> StructuralPartialEq for MsgId<'a>
Auto Trait Implementations§
impl<'a> Forget for MsgId<'a>
impl<'a> Freeze for MsgId<'a>
impl<'a> RefUnwindSafe for MsgId<'a>
impl<'a> Send for MsgId<'a>
impl<'a> Sync for MsgId<'a>
impl<'a> Unpin for MsgId<'a>
impl<'a> UnsafeUnpin for MsgId<'a>
impl<'a> UnwindSafe for MsgId<'a>
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