pub trait MessageReply: Sized + Sealed {
type Reply;
// Required method
fn receive(
self,
) -> impl Future<Output = Result<Self::Reply, RxError>> + Send;
// Provided method
fn receive_blocking(self) -> Result<Self::Reply, RxError> { ... }
}Expand description
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn receive_blocking(self) -> Result<Self::Reply, RxError>
fn receive_blocking(self) -> Result<Self::Reply, RxError>
Same as Self::receive, but blocks the current thread until the reply is received.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".