Enum mas_listener::unix_or_tcp::SocketAddr
source · pub enum SocketAddr {
Unix(SocketAddr),
Net(SocketAddr),
}
Variants§
Unix(SocketAddr)
Net(SocketAddr)
Implementations§
source§impl SocketAddr
impl SocketAddr
pub fn into_net(self) -> Option<SocketAddr>
pub fn into_unix(self) -> Option<SocketAddr>
pub const fn as_net(&self) -> Option<&SocketAddr>
pub const fn as_unix(&self) -> Option<&SocketAddr>
Trait Implementations§
source§impl Debug for SocketAddr
impl Debug for SocketAddr
source§impl From<SocketAddr> for SocketAddr
impl From<SocketAddr> for SocketAddr
source§fn from(value: SocketAddr) -> Self
fn from(value: SocketAddr) -> Self
Converts to this type from the input type.
source§impl From<SocketAddr> for SocketAddr
impl From<SocketAddr> for SocketAddr
source§fn from(value: SocketAddr) -> Self
fn from(value: SocketAddr) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SocketAddr
impl RefUnwindSafe for SocketAddr
impl Send for SocketAddr
impl Sync for SocketAddr
impl Unpin for SocketAddr
impl UnwindSafe for SocketAddr
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