pub struct NetIf { /* private fields */ }Expand description
RAII wrapper around a network interface.
Uses inline storage so no heap/zero-heap split is needed.
The handle is derived from &self.storage at each use to avoid
dangling self-referential pointers after Rust moves the struct.
Implementations§
Source§impl NetIf
impl NetIf
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Initialise a network interface using inline storage.
§Errors
Returns an error if the underlying RTOS rejects the initialisation.
Trait Implementations§
Auto Trait Implementations§
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