dope-core 0.77.0

Owned native I/O and completion driver for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::driver::schedule::clock;

/// Driver-branded application scheduling.
///
/// Deadlines retain their original driver lifetime.
pub trait Deadline<'d> {
    fn deadline<'turn>(&self, clock: clock::Clock<'turn, 'd>) -> Option<clock::Deadline<'d>>;
}

impl<'d> Deadline<'d> for clock::Deadline<'d> {
    fn deadline<'turn>(&self, _: clock::Clock<'turn, 'd>) -> Option<clock::Deadline<'d>> {
        Some(*self)
    }
}