pub struct StackConfig {
pub ip_addr: Ipv4Addr,
pub subnet_mask: Ipv4Addr,
pub gateway: Ipv4Addr,
pub arp_timeout: u64,
pub default_ttl: u8,
pub enable_ping: bool,
}Expand description
Network stack configuration.
Fields§
§ip_addr: Ipv4AddrLocal IP address.
subnet_mask: Ipv4AddrSubnet mask.
gateway: Ipv4AddrDefault gateway.
arp_timeout: u64ARP cache timeout (in abstract time units).
default_ttl: u8Default TTL for outgoing packets.
enable_ping: boolEnable ICMP echo reply (ping).
Trait Implementations§
Source§impl Clone for StackConfig
impl Clone for StackConfig
Source§fn clone(&self) -> StackConfig
fn clone(&self) -> StackConfig
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 StackConfig
impl Debug for StackConfig
Source§impl Default for StackConfig
impl Default for StackConfig
impl Copy for StackConfig
Auto Trait Implementations§
impl Freeze for StackConfig
impl RefUnwindSafe for StackConfig
impl Send for StackConfig
impl Sync for StackConfig
impl Unpin for StackConfig
impl UnsafeUnpin for StackConfig
impl UnwindSafe for StackConfig
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