Module nakamoto_net::event

source ·
Expand description

Events generated by the peer-to-peer system.

Structs

An event publish/subscribe channel.
Publishes events to subscribers.
Subscribes to events.

Enums

An error returned from the recv_timeout method.

Traits

Any type that is able to publish events.

Functions

Create a new broadcast channel.
Listen to an event feed, and wait for the given function to return something, or timeout if the specified amount of time has elapsed.