pub struct ServerAddress {
pub addr: IpAddr,
pub mac_addr: Option<String>,
pub addr_type: Option<AddressType>,
}Expand description
Address of a server.
Fields§
§addr: IpAddrIP (v4 of v6) address.
mac_addr: Option<String>MAC address (if available).
addr_type: Option<AddressType>Address type (if known).
Trait Implementations§
Source§impl Clone for ServerAddress
impl Clone for ServerAddress
Source§fn clone(&self) -> ServerAddress
fn clone(&self) -> ServerAddress
Returns a duplicate 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 Debug for ServerAddress
impl Debug for ServerAddress
Source§impl<'de> Deserialize<'de> for ServerAddress
impl<'de> Deserialize<'de> for ServerAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServerAddress
impl RefUnwindSafe for ServerAddress
impl Send for ServerAddress
impl Sync for ServerAddress
impl Unpin for ServerAddress
impl UnwindSafe for ServerAddress
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