pub enum AnySocketAddr {
Inet(SocketAddr),
Unix(SocketAddrUnix),
}Variants§
Inet(SocketAddr)
Unix(SocketAddrUnix)
Implementations§
Trait Implementations§
Source§impl Clone for AnySocketAddr
impl Clone for AnySocketAddr
Source§fn clone(&self) -> AnySocketAddr
fn clone(&self) -> AnySocketAddr
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 AnySocketAddr
impl Debug for AnySocketAddr
Source§impl Display for AnySocketAddr
impl Display for AnySocketAddr
Source§impl PartialEq for AnySocketAddr
impl PartialEq for AnySocketAddr
impl StructuralPartialEq for AnySocketAddr
Auto Trait Implementations§
impl Freeze for AnySocketAddr
impl RefUnwindSafe for AnySocketAddr
impl Send for AnySocketAddr
impl Sync for AnySocketAddr
impl Unpin for AnySocketAddr
impl UnsafeUnpin for AnySocketAddr
impl UnwindSafe for AnySocketAddr
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