#[non_exhaustive]pub enum ClientId {
Domain(String),
Ipv4(Ipv4Addr),
Ipv6(Ipv6Addr),
}
Expand description
Client identifier, the parameter to EHLO
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Domain(String)
A fully-qualified domain name
Ipv4(Ipv4Addr)
An IPv4 address
Ipv6(Ipv6Addr)
An IPv6 address
Trait Implementations§
impl Eq for ClientId
impl StructuralPartialEq for ClientId
Auto Trait Implementations§
impl Freeze for ClientId
impl RefUnwindSafe for ClientId
impl Send for ClientId
impl Sync for ClientId
impl Unpin for ClientId
impl UnwindSafe for ClientId
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