pub trait ProtocolBProxyInterface: Send + Sync {
type FooResponseFut: Future<Output = Result<(), Error>> + Send;
// Required method
fn foo(&self) -> Self::FooResponseFut;
}Required Associated Types§
Required Methods§
fn foo(&self) -> Self::FooResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".