pub enum Address {
Ip(IpAddr),
Host(String),
}Expand description
A unicast address as written on an o= or c= line.
RFC 8866 §5.2 and §5.7 allow a fully-qualified domain name here, not just a literal. A name is kept as written: resolving it takes a resolver, which is I/O this crate does not do, and re-emitting it verbatim is what keeps a round trip faithful.
Variants§
Implementations§
Trait Implementations§
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnsafeUnpin for Address
impl UnwindSafe for Address
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