pub enum SmtpEhloDomain<'a> {
SmtpDomain(SmtpDomain<'a>),
SmtpAddressLiteral(SmtpAddressLiteral<'a>),
}Expand description
The domain identifier used in EHLO/HELO commands.
Can be either a domain name or an address literal.
Variants§
SmtpDomain(SmtpDomain<'a>)
A domain name
SmtpAddressLiteral(SmtpAddressLiteral<'a>)
An address literal (IPv4, IPv6, or general)
Trait Implementations§
Source§impl<'a> Clone for SmtpEhloDomain<'a>
impl<'a> Clone for SmtpEhloDomain<'a>
Source§fn clone(&self) -> SmtpEhloDomain<'a>
fn clone(&self) -> SmtpEhloDomain<'a>
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<'a> Debug for SmtpEhloDomain<'a>
impl<'a> Debug for SmtpEhloDomain<'a>
Source§impl Display for SmtpEhloDomain<'_>
impl Display for SmtpEhloDomain<'_>
impl<'a> Eq for SmtpEhloDomain<'a>
Source§impl From<Ipv4Addr> for SmtpEhloDomain<'_>
impl From<Ipv4Addr> for SmtpEhloDomain<'_>
Source§impl From<Ipv6Addr> for SmtpEhloDomain<'_>
impl From<Ipv6Addr> for SmtpEhloDomain<'_>
Source§impl<'a> From<SmtpAddressLiteral<'a>> for SmtpEhloDomain<'a>
impl<'a> From<SmtpAddressLiteral<'a>> for SmtpEhloDomain<'a>
Source§fn from(addr: SmtpAddressLiteral<'a>) -> Self
fn from(addr: SmtpAddressLiteral<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<SmtpDomain<'a>> for SmtpEhloDomain<'a>
impl<'a> From<SmtpDomain<'a>> for SmtpEhloDomain<'a>
Source§fn from(domain: SmtpDomain<'a>) -> Self
fn from(domain: SmtpDomain<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for SmtpEhloDomain<'a>
impl<'a> Hash for SmtpEhloDomain<'a>
Source§impl<'a> IntoBoundedStatic for SmtpEhloDomain<'a>
impl<'a> IntoBoundedStatic for SmtpEhloDomain<'a>
Source§type Static = SmtpEhloDomain<'static>
type Static = SmtpEhloDomain<'static>
The target type is bounded by the
'static lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T into an owned T such that T: 'static.Source§impl<'a> PartialEq for SmtpEhloDomain<'a>
impl<'a> PartialEq for SmtpEhloDomain<'a>
impl<'a> StructuralPartialEq for SmtpEhloDomain<'a>
Source§impl<'a> ToBoundedStatic for SmtpEhloDomain<'a>
impl<'a> ToBoundedStatic for SmtpEhloDomain<'a>
Auto Trait Implementations§
impl<'a> Freeze for SmtpEhloDomain<'a>
impl<'a> RefUnwindSafe for SmtpEhloDomain<'a>
impl<'a> Send for SmtpEhloDomain<'a>
impl<'a> Sync for SmtpEhloDomain<'a>
impl<'a> Unpin for SmtpEhloDomain<'a>
impl<'a> UnsafeUnpin for SmtpEhloDomain<'a>
impl<'a> UnwindSafe for SmtpEhloDomain<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.