pub struct WifiLinkPolicy {
pub ip: [u8; 4],
pub prefix_len: u8,
pub dhcp_server_client_ip: Option<[u8; 4]>,
}Expand description
Wireless link policy a device reports for itself, so the protocol stack can apply it without any Wi-Fi/SoftAP-specific knowledge.
This is plain data carried alongside the device; the stack only sees a static IPv4 + optional single-client DHCP server lease.
Fields§
§ip: [u8; 4]This interface’s static address / SoftAP gateway.
prefix_len: u8Prefix length for ip.
dhcp_server_client_ip: Option<[u8; 4]>If set, run a built-in DHCP server handing out this single address.
Trait Implementations§
Source§impl Clone for WifiLinkPolicy
impl Clone for WifiLinkPolicy
Source§fn clone(&self) -> WifiLinkPolicy
fn clone(&self) -> WifiLinkPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WifiLinkPolicy
Auto Trait Implementations§
impl Freeze for WifiLinkPolicy
impl RefUnwindSafe for WifiLinkPolicy
impl Send for WifiLinkPolicy
impl Sync for WifiLinkPolicy
impl Unpin for WifiLinkPolicy
impl UnsafeUnpin for WifiLinkPolicy
impl UnwindSafe for WifiLinkPolicy
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