pub struct Inet4SocketAddress {
pub addr: [u8; 4],
pub port: u16,
}Expand description
IPv4 socket address
Fields§
§addr: [u8; 4]IPv4 address
port: u16Port number
Implementations§
Trait Implementations§
Source§impl Clone for Inet4SocketAddress
impl Clone for Inet4SocketAddress
Source§fn clone(&self) -> Inet4SocketAddress
fn clone(&self) -> Inet4SocketAddress
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Inet4SocketAddress
impl Debug for Inet4SocketAddress
Source§impl PartialEq for Inet4SocketAddress
impl PartialEq for Inet4SocketAddress
impl Copy for Inet4SocketAddress
impl Eq for Inet4SocketAddress
impl StructuralPartialEq for Inet4SocketAddress
Auto Trait Implementations§
impl Freeze for Inet4SocketAddress
impl RefUnwindSafe for Inet4SocketAddress
impl Send for Inet4SocketAddress
impl Sync for Inet4SocketAddress
impl Unpin for Inet4SocketAddress
impl UnwindSafe for Inet4SocketAddress
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.