pub struct NetworkDeviceInfo {
pub ip_address_current: [u8; 4],
pub ip_address_setup: [u8; 4],
pub subnet_mask: [u8; 4],
pub gateway_ip: [u8; 4],
pub tcp_timeout: u16,
pub additional_network_options: u8,
pub dhcp: u8,
}Expand description
Network device information
Fields§
§ip_address_current: [u8; 4]§ip_address_setup: [u8; 4]§subnet_mask: [u8; 4]§gateway_ip: [u8; 4]§tcp_timeout: u16§additional_network_options: u8§dhcp: u8Implementations§
Source§impl NetworkDeviceInfo
impl NetworkDeviceInfo
pub fn ip_address(&self) -> [u8; 4]
pub fn gateway(&self) -> [u8; 4]
pub fn dns_server(&self) -> [u8; 4]
pub fn mac_address(&self) -> [u8; 6]
pub fn device_name(&self) -> String
pub fn http_port(&self) -> u16
pub fn tcp_port(&self) -> u16
pub fn udp_port(&self) -> u16
pub fn dhcp_enabled(&self) -> bool
Trait Implementations§
Source§impl Clone for NetworkDeviceInfo
impl Clone for NetworkDeviceInfo
Source§fn clone(&self) -> NetworkDeviceInfo
fn clone(&self) -> NetworkDeviceInfo
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 NetworkDeviceInfo
impl Debug for NetworkDeviceInfo
Source§impl Default for NetworkDeviceInfo
impl Default for NetworkDeviceInfo
Source§fn default() -> NetworkDeviceInfo
fn default() -> NetworkDeviceInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkDeviceInfo
impl<'de> Deserialize<'de> for NetworkDeviceInfo
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 NetworkDeviceInfo
impl RefUnwindSafe for NetworkDeviceInfo
impl Send for NetworkDeviceInfo
impl Sync for NetworkDeviceInfo
impl Unpin for NetworkDeviceInfo
impl UnwindSafe for NetworkDeviceInfo
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