pub trait FakeEndpointProxyInterface: Send + Sync {
type WriteResponseFut: Future<Output = Result<(), Error>> + Send;
type ReadResponseFut: Future<Output = Result<(Vec<u8>, u64), Error>> + Send;
// Required methods
fn write(&self, data: &[u8]) -> Self::WriteResponseFut;
fn read(&self) -> Self::ReadResponseFut;
}Required Associated Types§
type WriteResponseFut: Future<Output = Result<(), Error>> + Send
type ReadResponseFut: Future<Output = Result<(Vec<u8>, u64), Error>> + Send
Required Methods§
fn write(&self, data: &[u8]) -> Self::WriteResponseFut
fn read(&self) -> Self::ReadResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".