pub struct Address {
pub host: (u8, u8, u8, u8),
pub port: u16,
}
Expand description
§Address
A utility struct for representing Socket-Addresses.
Fields§
§host: (u8, u8, u8, u8)
Host
port: u16
Port
Implementations§
Trait Implementations§
Source§impl From<SocketAddr> for Address
impl From<SocketAddr> for Address
Source§fn from(addr: SocketAddr) -> Self
fn from(addr: SocketAddr) -> Self
Converts to this type from the input type.
Source§impl Into<SocketAddr> for Address
impl Into<SocketAddr> for Address
Source§fn into(self) -> SocketAddr
fn into(self) -> SocketAddr
Converts this type into the (usually inferred) input type.
impl Copy for Address
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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