pub trait StressorProxyInterface: Send + Sync {
type StuffSocketResponseFut: Future<Output = Result<u32, Error>> + Send;
type EchoResponseFut: Future<Output = Result<String, Error>> + Send;
// Required methods
fn stuff_socket(&self, socket: Socket) -> Self::StuffSocketResponseFut;
fn echo(&self, content: &str) -> Self::EchoResponseFut;
}Required Associated Types§
type StuffSocketResponseFut: Future<Output = Result<u32, Error>> + Send
type EchoResponseFut: Future<Output = Result<String, Error>> + Send
Required Methods§
fn stuff_socket(&self, socket: Socket) -> Self::StuffSocketResponseFut
fn echo(&self, content: &str) -> Self::EchoResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".