pub struct ScheduledJob {
pub id: usize,
pub start: u64,
pub finish: u64,
pub weight: u64,
}Expand description
A job for interval scheduling, defined by a start time, finish time, and weight.
Fields§
§id: usizeJob identifier.
start: u64Start time (inclusive).
finish: u64Finish time (exclusive).
weight: u64Non-negative weight/value.
Implementations§
Source§impl ScheduledJob
impl ScheduledJob
Trait Implementations§
Source§impl Clone for ScheduledJob
impl Clone for ScheduledJob
Source§fn clone(&self) -> ScheduledJob
fn clone(&self) -> ScheduledJob
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScheduledJob
impl RefUnwindSafe for ScheduledJob
impl Send for ScheduledJob
impl Sync for ScheduledJob
impl Unpin for ScheduledJob
impl UnsafeUnpin for ScheduledJob
impl UnwindSafe for ScheduledJob
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