pub trait Receiver:
Debug
+ Send
+ 'static {
type Error: Debug + StdError + Send + Sync;
type PublicKey: PublicKey;
// Required method
fn recv(
&mut self,
) -> impl Future<Output = Result<Message<Self::PublicKey>, Self::Error>> + Send;
}
Expand description
Interface for receiving messages from arbitrary recipients.
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.