pub struct Received<'m> { /* private fields */ }Expand description
A parsed Received trace field (RFC 5321 section 4.4). Every clause is optional; values compare by content.
Implementations§
Source§impl<'m> Received<'m>
impl<'m> Received<'m>
Sourcepub fn from_ip(&self) -> Option<IpAddr>
pub fn from_ip(&self) -> Option<IpAddr>
IP address of the sending host: an address literal or an address in a comment.
Sourcepub fn from_iprev(&self) -> Option<&'m str>
pub fn from_iprev(&self) -> Option<&'m str>
The name the sending address resolved to, from a comment.
Sourcepub fn tls_version(&self) -> Option<TlsVersion>
pub fn tls_version(&self) -> Option<TlsVersion>
The TLS version named in a comment.
Sourcepub fn tls_cipher(&self) -> Option<&'m str>
pub fn tls_cipher(&self) -> Option<&'m str>
The TLS cipher suite, when one is named.
Trait Implementations§
impl<'m> Copy for Received<'m>
impl Eq for Received<'_>
Auto Trait Implementations§
impl<'m> Freeze for Received<'m>
impl<'m> RefUnwindSafe for Received<'m>
impl<'m> Send for Received<'m>
impl<'m> Sync for Received<'m>
impl<'m> Unpin for Received<'m>
impl<'m> UnsafeUnpin for Received<'m>
impl<'m> UnwindSafe for Received<'m>
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