pub struct FixedStart {
pub at: Time,
pub tolerance: Duration,
pub on_miss: MissPolicy,
}Expand description
A start time the scheduler plans capacity for: a worker slot is reserved at admission and
held free shortly before at.
Fields§
§at: TimeWhen the task should start.
tolerance: DurationHow late the start may be and still count as on time.
on_miss: MissPolicyWhat happens if the task has not started by at + tolerance.
Implementations§
Source§impl FixedStart
impl FixedStart
Sourcepub fn at(at: Time) -> FixedStart
pub fn at(at: Time) -> FixedStart
Start at at with a 1 s tolerance, running late if missed.
Trait Implementations§
Source§impl Clone for FixedStart
impl Clone for FixedStart
impl Copy for FixedStart
Source§impl Debug for FixedStart
impl Debug for FixedStart
impl Eq for FixedStart
Source§impl Hash for FixedStart
impl Hash for FixedStart
Source§impl PartialEq for FixedStart
impl PartialEq for FixedStart
impl StructuralPartialEq for FixedStart
Auto Trait Implementations§
impl Freeze for FixedStart
impl RefUnwindSafe for FixedStart
impl Send for FixedStart
impl Sync for FixedStart
impl Unpin for FixedStart
impl UnsafeUnpin for FixedStart
impl UnwindSafe for FixedStart
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