use core::task::Waker;
use crate::time::{Driver, Instant};
pub static DRIVER: UnboundDriver = UnboundDriver;
pub struct UnboundDriver;
impl Driver for UnboundDriver {
fn now(&self) -> Instant {
panic!(
"proxima_core::time has no driver bound; activate a `time-driver-*` \
feature (e.g. time-driver-std-thread, time-driver-mock) or set \
PROXIMA_PROFILE"
);
}
fn schedule_wake(&self, _deadline: Instant, _waker: Waker) {
panic!(
"proxima_core::time has no driver bound; activate a `time-driver-*` \
feature (e.g. time-driver-std-thread, time-driver-mock) or set \
PROXIMA_PROFILE"
);
}
}