Skip to main content

TestProxyInterface

Trait TestProxyInterface 

Source
pub trait TestProxyInterface: Send + Sync {
    type PingResponseFut: Future<Output = Result<u32, Error>> + Send;
    type DisconnectResponseFut: Future<Output = Result<(), Error>> + Send;

    // Required methods
    fn ping(&self) -> Self::PingResponseFut;
    fn disconnect(&self) -> Self::DisconnectResponseFut;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§