pub trait FakeClockProxyInterface: Send + Sync {
type GetResponseFut: Future<Output = Result<(BootInstant, MonotonicInstant), Error>> + Send;
type RescheduleEventInMonotonicResponseFut: Future<Output = Result<FakeClockRescheduleEventInMonotonicResult, Error>> + Send;
type RescheduleEventInBootResponseFut: Future<Output = Result<FakeClockRescheduleEventInBootResult, Error>> + Send;
type CancelEventResponseFut: Future<Output = Result<(), Error>> + Send;
type CreateNamedDeadlineInMonotonicResponseFut: Future<Output = Result<MonotonicInstant, Error>> + Send;
type CreateNamedDeadlineInBootResponseFut: Future<Output = Result<BootInstant, Error>> + Send;
// Required methods
fn get(&self) -> Self::GetResponseFut;
fn register_event_in_monotonic(
&self,
event: EventPair,
time: MonotonicInstant,
) -> Result<(), Error>;
fn register_event_in_boot(
&self,
event: EventPair,
time: BootInstant,
) -> Result<(), Error>;
fn reschedule_event_in_monotonic(
&self,
event: EventPair,
time: MonotonicInstant,
) -> Self::RescheduleEventInMonotonicResponseFut;
fn reschedule_event_in_boot(
&self,
event: EventPair,
time: BootInstant,
) -> Self::RescheduleEventInBootResponseFut;
fn cancel_event(&self, event: EventPair) -> Self::CancelEventResponseFut;
fn create_named_deadline_in_monotonic(
&self,
id: &DeadlineId,
duration: i64,
) -> Self::CreateNamedDeadlineInMonotonicResponseFut;
fn create_named_deadline_in_boot(
&self,
id: &DeadlineId,
duration: i64,
) -> Self::CreateNamedDeadlineInBootResponseFut;
}Required Associated Types§
type GetResponseFut: Future<Output = Result<(BootInstant, MonotonicInstant), Error>> + Send
type RescheduleEventInMonotonicResponseFut: Future<Output = Result<FakeClockRescheduleEventInMonotonicResult, Error>> + Send
type RescheduleEventInBootResponseFut: Future<Output = Result<FakeClockRescheduleEventInBootResult, Error>> + Send
type CancelEventResponseFut: Future<Output = Result<(), Error>> + Send
type CreateNamedDeadlineInMonotonicResponseFut: Future<Output = Result<MonotonicInstant, Error>> + Send
type CreateNamedDeadlineInBootResponseFut: Future<Output = Result<BootInstant, Error>> + Send
Required Methods§
fn get(&self) -> Self::GetResponseFut
fn register_event_in_monotonic( &self, event: EventPair, time: MonotonicInstant, ) -> Result<(), Error>
fn register_event_in_boot( &self, event: EventPair, time: BootInstant, ) -> Result<(), Error>
fn reschedule_event_in_monotonic( &self, event: EventPair, time: MonotonicInstant, ) -> Self::RescheduleEventInMonotonicResponseFut
fn reschedule_event_in_boot( &self, event: EventPair, time: BootInstant, ) -> Self::RescheduleEventInBootResponseFut
fn cancel_event(&self, event: EventPair) -> Self::CancelEventResponseFut
fn create_named_deadline_in_monotonic( &self, id: &DeadlineId, duration: i64, ) -> Self::CreateNamedDeadlineInMonotonicResponseFut
fn create_named_deadline_in_boot( &self, id: &DeadlineId, duration: i64, ) -> Self::CreateNamedDeadlineInBootResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".