#[non_exhaustive]pub enum UniAddrInner {
Inet(SocketAddr),
Unix(SocketAddr),
Host(Arc<str>),
}Expand description
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.
Inet(SocketAddr)
See std::net::SocketAddr.
Unix(SocketAddr)
See unix::SocketAddr.
Host(Arc<str>)
A host name with port. See ToSocketAddrs.
Trait Implementations§
Source§impl AsRef<UniAddrInner> for UniAddr
impl AsRef<UniAddrInner> for UniAddr
Source§fn as_ref(&self) -> &UniAddrInner
fn as_ref(&self) -> &UniAddrInner
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for UniAddrInner
impl Clone for UniAddrInner
Source§fn clone(&self) -> UniAddrInner
fn clone(&self) -> UniAddrInner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UniAddrInner
impl Debug for UniAddrInner
Source§impl Display for UniAddrInner
impl Display for UniAddrInner
Source§impl Hash for UniAddrInner
impl Hash for UniAddrInner
Source§impl PartialEq for UniAddrInner
impl PartialEq for UniAddrInner
impl Eq for UniAddrInner
impl StructuralPartialEq for UniAddrInner
Auto Trait Implementations§
impl Freeze for UniAddrInner
impl RefUnwindSafe for UniAddrInner
impl Send for UniAddrInner
impl Sync for UniAddrInner
impl Unpin for UniAddrInner
impl UnwindSafe for UniAddrInner
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