pub struct NetworkDeviceConfig {
pub device_info: NetworkDeviceInfo,
}Expand description
Network device configuration
Fields§
§device_info: NetworkDeviceInfoImplementations§
Source§impl NetworkDeviceConfig
impl NetworkDeviceConfig
pub fn new() -> Self
Sourcepub fn set_ip_address(&mut self, ip: [u8; 4])
pub fn set_ip_address(&mut self, ip: [u8; 4])
Configure device IP address
Sourcepub fn set_subnet_mask(&mut self, mask: [u8; 4])
pub fn set_subnet_mask(&mut self, mask: [u8; 4])
Configure subnet mask
Sourcepub fn set_default_gateway(&mut self, gateway: [u8; 4])
pub fn set_default_gateway(&mut self, gateway: [u8; 4])
Configure default gateway
Sourcepub fn set_tcp_timeout(&mut self, timeout_ms: u16)
pub fn set_tcp_timeout(&mut self, timeout_ms: u16)
Set TCP timeout
Sourcepub fn set_network_options(
&mut self,
disable_discovery: bool,
disable_auto_config: bool,
disable_udp_config: bool,
)
pub fn set_network_options( &mut self, disable_discovery: bool, disable_auto_config: bool, disable_udp_config: bool, )
Configure network options
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetworkDeviceConfig
impl RefUnwindSafe for NetworkDeviceConfig
impl Send for NetworkDeviceConfig
impl Sync for NetworkDeviceConfig
impl Unpin for NetworkDeviceConfig
impl UnsafeUnpin for NetworkDeviceConfig
impl UnwindSafe for NetworkDeviceConfig
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