Module scuttlebutt::channel
source · Expand description
Module for encapsulating communication channels for swanky.
Structs§
- A standard read/write channel that implements
AbstractChannel. - An instantiation of the
AbstractChanneltrait which computes a running hash of all bytes read from and written to the channel. - Standard Read/Write channel built from a symmetric stream.
- A channel that implements
AbstractChannelas well asSendandSync. - A channel wrapping another channel for tracking the number of bits read/written.
Traits§
- A trait for managing I/O.
AbstractChannels are clonable, and provide basic read/write capabilities for both common and scuttlebutt-specific types.
Functions§
- Convenience function to create a pair of TrackUnixChannels for local tests in
swanky. - Convenience function to create a pair of UnixChannels for local tests in
swanky.
Type Aliases§
- A TrackChannel which uses UnixStreams.
- A SyncChannel which uses UnixStreams.