pub enum UnifiedAddress {
Ip(SocketAddr),
Domain {
host: String,
port: u16,
},
}Variants§
Trait Implementations§
source§impl Clone for UnifiedAddress
impl Clone for UnifiedAddress
source§fn clone(&self) -> UnifiedAddress
fn clone(&self) -> UnifiedAddress
Returns a copy 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 UnifiedAddress
impl Debug for UnifiedAddress
source§impl<'de> Deserialize<'de> for UnifiedAddress
impl<'de> Deserialize<'de> for UnifiedAddress
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for UnifiedAddress
impl Display for UnifiedAddress
source§impl From<SocketAddr> for UnifiedAddress
impl From<SocketAddr> for UnifiedAddress
source§fn from(value: SocketAddr) -> Self
fn from(value: SocketAddr) -> Self
Converts to this type from the input type.
source§impl PartialEq for UnifiedAddress
impl PartialEq for UnifiedAddress
source§impl Serialize for UnifiedAddress
impl Serialize for UnifiedAddress
source§impl ToSocketAddrs for UnifiedAddress
impl ToSocketAddrs for UnifiedAddress
source§type Iter = SocketAddrIter
type Iter = SocketAddrIter
Returned iterator over socket addresses which this type may correspond
to.
source§fn to_socket_addrs(&self) -> Result<Self::Iter>
fn to_socket_addrs(&self) -> Result<Self::Iter>
Converts this object to an iterator of resolved
SocketAddrs. Read moresource§impl TryFrom<UnifiedAddress> for Vec<SocketAddr>
impl TryFrom<UnifiedAddress> for Vec<SocketAddr>
source§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
impl Eq for UnifiedAddress
Auto Trait Implementations§
impl Freeze for UnifiedAddress
impl RefUnwindSafe for UnifiedAddress
impl Send for UnifiedAddress
impl Sync for UnifiedAddress
impl Unpin for UnifiedAddress
impl UnwindSafe for UnifiedAddress
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)