fidl_fuchsia_testing

Trait FakeClockProxyInterface

Source
pub trait FakeClockProxyInterface: Send + Sync {
    type GetResponseFut: Future<Output = Result<i64, Error>> + Send;
    type RescheduleEventResponseFut: Future<Output = Result<(), Error>> + Send;
    type CancelEventResponseFut: Future<Output = Result<(), Error>> + Send;
    type CreateNamedDeadlineResponseFut: Future<Output = Result<i64, Error>> + Send;

    // Required methods
    fn get(&self) -> Self::GetResponseFut;
    fn register_event(&self, event: EventPair, time: i64) -> Result<(), Error>;
    fn reschedule_event(
        &self,
        event: EventPair,
        time: i64,
    ) -> Self::RescheduleEventResponseFut;
    fn cancel_event(&self, event: EventPair) -> Self::CancelEventResponseFut;
    fn create_named_deadline(
        &self,
        id: &DeadlineId,
        duration: i64,
    ) -> Self::CreateNamedDeadlineResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn get(&self) -> Self::GetResponseFut

Source

fn register_event(&self, event: EventPair, time: i64) -> Result<(), Error>

Source

fn reschedule_event( &self, event: EventPair, time: i64, ) -> Self::RescheduleEventResponseFut

Source

fn cancel_event(&self, event: EventPair) -> Self::CancelEventResponseFut

Source

fn create_named_deadline( &self, id: &DeadlineId, duration: i64, ) -> Self::CreateNamedDeadlineResponseFut

Implementors§