Struct net_types::AddrAndPortFormatter
source · pub struct AddrAndPortFormatter<A, P, I: Ip> { /* private fields */ }
Expand description
Provides a Display
implementation for printing an address and a port.
Implementations§
Trait Implementations§
source§impl<A: Clone, P: Clone, I: Clone + Ip> Clone for AddrAndPortFormatter<A, P, I>
impl<A: Clone, P: Clone, I: Clone + Ip> Clone for AddrAndPortFormatter<A, P, I>
source§fn clone(&self) -> AddrAndPortFormatter<A, P, I>
fn clone(&self) -> AddrAndPortFormatter<A, P, I>
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<A: PartialEq, P: PartialEq, I: PartialEq + Ip> PartialEq for AddrAndPortFormatter<A, P, I>
impl<A: PartialEq, P: PartialEq, I: PartialEq + Ip> PartialEq for AddrAndPortFormatter<A, P, I>
source§fn eq(&self, other: &AddrAndPortFormatter<A, P, I>) -> bool
fn eq(&self, other: &AddrAndPortFormatter<A, P, I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<A: Copy, P: Copy, I: Copy + Ip> Copy for AddrAndPortFormatter<A, P, I>
impl<A: Eq, P: Eq, I: Eq + Ip> Eq for AddrAndPortFormatter<A, P, I>
impl<A, P, I: Ip> StructuralPartialEq for AddrAndPortFormatter<A, P, I>
Auto Trait Implementations§
impl<A, P, I> Freeze for AddrAndPortFormatter<A, P, I>
impl<A, P, I> RefUnwindSafe for AddrAndPortFormatter<A, P, I>
impl<A, P, I> Send for AddrAndPortFormatter<A, P, I>
impl<A, P, I> Sync for AddrAndPortFormatter<A, P, I>
impl<A, P, I> Unpin for AddrAndPortFormatter<A, P, I>
impl<A, P, I> UnwindSafe for AddrAndPortFormatter<A, P, I>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)