pub trait Manager: Provider {
// Required method
fn track(
&mut self,
id: u64,
peers: Set<Self::PublicKey>,
) -> impl Future<Output = ()> + Send;
}Expand description
Interface for managing peer set membership (where peer addresses are not known).
Required Methods§
Sourcefn track(
&mut self,
id: u64,
peers: Set<Self::PublicKey>,
) -> impl Future<Output = ()> + Send
fn track( &mut self, id: u64, peers: Set<Self::PublicKey>, ) -> impl Future<Output = ()> + Send
Track a peer set with the given ID and peers.
The peer set ID passed to this function should be strictly managed, ideally matching the epoch of the consensus engine. It must be monotonically increasing as new peer sets are tracked.
For good connectivity, all peers must track the same peer sets at the same ID.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.