pub trait ExampleProxyInterface: Send + Sync {
type GetMonotonicResponseFut: Future<Output = Result<i64, Error>> + Send;
type WaitUntilResponseFut: Future<Output = Result<(), Error>> + Send;
type WaitForResponseFut: Future<Output = Result<(), Error>> + Send;
// Required methods
fn get_monotonic(&self) -> Self::GetMonotonicResponseFut;
fn wait_until(&self, timeout: i64) -> Self::WaitUntilResponseFut;
fn wait_for(&self, duration: i64) -> Self::WaitForResponseFut;
}Required Associated Types§
type GetMonotonicResponseFut: Future<Output = Result<i64, Error>> + Send
type WaitUntilResponseFut: Future<Output = Result<(), Error>> + Send
type WaitForResponseFut: Future<Output = Result<(), Error>> + Send
Required Methods§
fn get_monotonic(&self) -> Self::GetMonotonicResponseFut
fn wait_until(&self, timeout: i64) -> Self::WaitUntilResponseFut
fn wait_for(&self, duration: i64) -> Self::WaitForResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".