pub struct StackStorage<'d> { /* private fields */ }Expand description
Memory storage needed for a network stack.
The stack holds this for the rest of the program: put it in a static
(with StaticCell), or declare it before the stack.
This holds only the stack-wide state. The drivers live wherever the caller
puts them, and are handed to Stack::add_iface.
Socket storage is not here either: the stack has a fixed number of socket
slots per type, set by the *-socket-count-N features of xarxa, and the
packet buffers come from a global pool sized by packet-buf-count-N.
Implementations§
Source§impl<'d> StackStorage<'d>
impl<'d> StackStorage<'d>
Trait Implementations§
Auto Trait Implementations§
impl<'d> !Freeze for StackStorage<'d>
impl<'d> !RefUnwindSafe for StackStorage<'d>
impl<'d> !Send for StackStorage<'d>
impl<'d> !Sync for StackStorage<'d>
impl<'d> !UnwindSafe for StackStorage<'d>
impl<'d> Unpin for StackStorage<'d>
impl<'d> UnsafeUnpin for StackStorage<'d>
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