fidl_fuchsia_fakeclock_test

Trait ExampleProxyInterface

Source
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§

Source

type GetMonotonicResponseFut: Future<Output = Result<i64, Error>> + Send

Source

type WaitUntilResponseFut: Future<Output = Result<(), Error>> + Send

Source

type WaitForResponseFut: Future<Output = Result<(), Error>> + Send

Required Methods§

Source

fn get_monotonic(&self) -> Self::GetMonotonicResponseFut

Source

fn wait_until(&self, timeout: i64) -> Self::WaitUntilResponseFut

Source

fn wait_for(&self, duration: i64) -> Self::WaitForResponseFut

Implementors§