pub enum SocketAddress {
fd(FdSocketAddress),
inet(InetSocketAddress),
unix(UnixSocketAddress),
vsock(VsockSocketAddress),
}
Variants§
Implementations§
Source§impl SocketAddress
impl SocketAddress
pub fn type_(&self) -> SocketAddressType
Trait Implementations§
Source§impl Clone for SocketAddress
impl Clone for SocketAddress
Source§fn clone(&self) -> SocketAddress
fn clone(&self) -> SocketAddress
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 SocketAddress
impl Debug for SocketAddress
Source§impl<'de> Deserialize<'de> for SocketAddress
impl<'de> Deserialize<'de> for SocketAddress
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 From<FdSocketAddress> for SocketAddress
impl From<FdSocketAddress> for SocketAddress
Source§fn from(val: FdSocketAddress) -> Self
fn from(val: FdSocketAddress) -> Self
Converts to this type from the input type.
Source§impl From<InetSocketAddress> for SocketAddress
impl From<InetSocketAddress> for SocketAddress
Source§fn from(val: InetSocketAddress) -> Self
fn from(val: InetSocketAddress) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddress> for MigrationAddress
impl From<SocketAddress> for MigrationAddress
Source§fn from(val: SocketAddress) -> Self
fn from(val: SocketAddress) -> Self
Converts to this type from the input type.
Source§impl From<UnixSocketAddress> for SocketAddress
impl From<UnixSocketAddress> for SocketAddress
Source§fn from(val: UnixSocketAddress) -> Self
fn from(val: UnixSocketAddress) -> Self
Converts to this type from the input type.
Source§impl From<VsockSocketAddress> for SocketAddress
impl From<VsockSocketAddress> for SocketAddress
Source§fn from(val: VsockSocketAddress) -> Self
fn from(val: VsockSocketAddress) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SocketAddress
impl RefUnwindSafe for SocketAddress
impl Send for SocketAddress
impl Sync for SocketAddress
impl Unpin for SocketAddress
impl UnwindSafe for SocketAddress
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