fidl_fuchsia_testingTrait 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;
}