Expand description
This module provide basic mechanism.
Modules§
- ext
- Unified, effect-separated protocol abstraction shared by
nativeandbrowser. - protocols
- Built-in protocol extensions.
- transport
- Transport relay — one abstraction for TCP, HTTP and (future) UDP.
Structs§
- Backend
- Backend consumes the swarm’s application inbox: it routes each inbound custom message,
decoded as an
Envelope, to its namespace’s protocol via theExtensionsregistry, and hands everything else to the optionalBackendObserver. The registry is shared with theProvider, so protocols registered there are visible to inbound dispatch here. Each protocol’s interpreter does its IO through a namespace-scopedScope. - Dispatch
Drop Counters - A reading of the envelopes the router dropped, by reason; each count is cumulative since the provider was created.
Traits§
- Backend
Observer - Observer of what the
Backendreads from the application inbox but does not act on itself: the peer facts, and the E2E messages it routes to no protocol.