pub struct Addr {
pub ip: IpAddr,
pub scope_id: u32,
}Expand description
An address that can be returned from gethostbyname4_r.
Fields§
§ip: IpAddrThe IP address that was resolved.
scope_id: u32This is typically only used for IPv6.
Zero is a safe default if you’re using IPv4 or don’t know what to put here.
Trait Implementations§
impl Copy for Addr
impl Eq for Addr
impl StructuralPartialEq for Addr
Auto Trait Implementations§
impl Freeze for Addr
impl RefUnwindSafe for Addr
impl Send for Addr
impl Sync for Addr
impl Unpin for Addr
impl UnsafeUnpin for Addr
impl UnwindSafe for Addr
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