pub struct Address {
pub ip: u32,
pub port: u32,
}Fields§
§ip: u32§port: u32Implementations§
Trait Implementations§
Source§impl From<&SocketAddrV4> for Address
impl From<&SocketAddrV4> for Address
Source§fn from(addr: &SocketAddrV4) -> Self
fn from(addr: &SocketAddrV4) -> Self
Converts to this type from the input type.
Source§impl From<Address> for SocketAddrV4
impl From<Address> for SocketAddrV4
impl Copy 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