Struct smoltcp::socket::dhcpv4::ServerInfo
source · pub struct ServerInfo {
pub address: Ipv4Address,
pub identifier: Ipv4Address,
}
Expand description
Information on how to reach a DHCP server.
Fields§
§address: Ipv4Address
IP address to use as destination in outgoing packets
identifier: Ipv4Address
Server identifier to use in outgoing packets. Usually equal to server_address, but may differ in some situations (eg DHCP relays)
Trait Implementations§
source§impl Clone for ServerInfo
impl Clone for ServerInfo
source§fn clone(&self) -> ServerInfo
fn clone(&self) -> ServerInfo
Returns a copy 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 ServerInfo
impl Debug for ServerInfo
source§impl PartialEq<ServerInfo> for ServerInfo
impl PartialEq<ServerInfo> for ServerInfo
source§fn eq(&self, other: &ServerInfo) -> bool
fn eq(&self, other: &ServerInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.