pub enum LiteralScope {
Ipv4(IpScope),
Ipv6(IpScope),
General,
}Expand description
Which address literal, and how far it reaches (RFC 5321 §4.1.3).
Variants§
Ipv4(IpScope)
IPv4-address-literal, as in [192.0.2.1].
Ipv6(IpScope)
IPv6-address-literal, as in [IPv6:2001:db8::1].
General
General-address-literal, as in [AS400:QSYS]: a tagged address whose
body SMTP does not interpret and which is meaningful only to the system
receiving it.
Implementations§
Trait Implementations§
Source§impl Clone for LiteralScope
impl Clone for LiteralScope
impl Copy for LiteralScope
Source§impl Debug for LiteralScope
impl Debug for LiteralScope
impl Eq for LiteralScope
Source§impl Hash for LiteralScope
impl Hash for LiteralScope
Source§impl PartialEq for LiteralScope
impl PartialEq for LiteralScope
impl StructuralPartialEq for LiteralScope
Auto Trait Implementations§
impl Freeze for LiteralScope
impl RefUnwindSafe for LiteralScope
impl Send for LiteralScope
impl Sync for LiteralScope
impl Unpin for LiteralScope
impl UnsafeUnpin for LiteralScope
impl UnwindSafe for LiteralScope
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