pub struct Schedule { /* private fields */ }Expand description
Ready and timer slot counts, added for claims and resolved against a baseline.
Implementations§
Source§impl Schedule
impl Schedule
pub const ZERO: Self
pub const DEFAULT: Self
pub const fn new(ready: Slots, timers: Slots) -> Self
pub const fn fixed<const READY: u32, const TIMERS: u32>() -> Self
pub const fn resolve(self, need: Self) -> Self
pub const fn ready(self) -> Slots
pub const fn timers(self) -> Slots
Trait Implementations§
impl Copy for Schedule
impl Eq for Schedule
impl StructuralPartialEq for Schedule
Auto Trait Implementations§
impl Forget for Schedule
impl Freeze for Schedule
impl Move for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnsafeUnpin for Schedule
impl UnwindSafe for Schedule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more