Type Definition state_sync_v1::network::StateSyncEvents

source ·
pub type StateSyncEvents = NetworkEvents<StateSyncMessage>;
Expand description

The interface from Network to StateSync layer.

StateSyncEvents is a Stream of PeerManagerNotification where the raw Bytes direct-send messages are deserialized into StateSyncMessage types. StateSyncEvents is a thin wrapper around a channel::Receiver<PeerManagerNotification>.