Expand description
Peer-to-peer networking core types.
Re-exports§
pub use event::Publisher;
pub use time::LocalDuration;
pub use time::LocalTime;
Modules§
- error
- Peer-to-peer protocol errors.
- event
- Events generated by the peer-to-peer system.
- simulator
- A simple P2P network simulator. Acts as the reactor, but without doing any I/O.
- time
Enums§
- Disconnect
- Disconnection event which includes the reason.
- Io
- Output of a state transition of the state machine.
- Link
- Link direction of the peer connection.
Traits§
- PeerId
- Remote peer id, which must be convertible into a
net::SocketAddr
- Reactor
- Any network reactor that can drive the light-client service.
- Service
- A network service.
- State
Machine - A service state-machine to implement a network protocol’s logic.
- Waker
- Used by certain types of reactors to wake the event loop, for example when a
Service::Command
is ready to be processed by the service.