pub trait Blocker:
Clone
+ Send
+ 'static {
type PublicKey: PublicKey;
// Required method
fn block(
&mut self,
peer: Self::PublicKey,
) -> impl Future<Output = ()> + Send;
}
Expand description
Interface for blocking other peers.
Required Associated Types§
Required Methods§
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.