Expand description
The Ergot NetStack
The NetStack is the core of Ergot. It is intended to be placed
in a static variable for the duration of your application.
The Netstack is used directly for a couple of main responsibilities:
- Sending a message, either from user code, or to deliver/forward messages received from an interface
- Attaching a socket, allowing the NetStack to route messages to it
- Interacting with the interface manager, in order to add/remove interfaces, or obtain other information
In general, interacting with anything contained by the NetStack requires
locking of the BlockingMutex which protects the inner contents. This
is used both to allow sharing of the inner contents, but also to allow
Drop impls to remove themselves from the stack in a blocking manner.
Structs§
- NetStack
- The Ergot Netstack
Enums§
- NetStack
Send Error - An error from calling a
NetStack“send” method