Skip to main content

Module extension

Module extension 

Source
Expand description

This module provide basic mechanism.

Modules§

ext
Unified, effect-separated protocol abstraction shared by native and browser.
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 the Extensions registry, and hands everything else to the optional BackendObserver. The registry is shared with the Provider, so protocols registered there are visible to inbound dispatch here. Each protocol’s interpreter does its IO through a namespace-scoped Scope.
DispatchDropCounters
A reading of the envelopes the router dropped, by reason; each count is cumulative since the provider was created.

Traits§

BackendObserver
Observer of what the Backend reads from the application inbox but does not act on itself: the peer facts, and the E2E messages it routes to no protocol.