pub struct SequenceWindow {
pub container: Id,
pub sequence: Id,
pub earliest_start: Timestamp,
pub latest_start: Timestamp,
pub duration: Duration,
pub max_pause_before: Option<Duration>,
}Expand description
Where one chosen sequence has to fall for the whole profile to fit its window.
Fields§
§container: IdThe container the choice was made in.
sequence: IdThe sequence chosen from it.
earliest_start: TimestampThe earliest it may start: the profile opens, or its predecessor finishes.
latest_start: TimestampThe latest it may start and still leave room for every sequence after it.
duration: DurationHow long it runs.
max_pause_before: Option<Duration>The longest it may idle after its predecessor finished, when the sequence says.
This is a constraint between two starts, not a bound on this one, so it cannot
be folded into latest_start — see schedule. starts_are_feasible is what
applies it.
Implementations§
Source§impl SequenceWindow
impl SequenceWindow
Sourcepub fn is_feasible(&self) -> bool
pub fn is_feasible(&self) -> bool
Whether there is any start time at all that works.
Trait Implementations§
Source§impl Clone for SequenceWindow
impl Clone for SequenceWindow
Source§impl Debug for SequenceWindow
impl Debug for SequenceWindow
Source§impl PartialEq for SequenceWindow
impl PartialEq for SequenceWindow
impl StructuralPartialEq for SequenceWindow
Auto Trait Implementations§
impl Forget for SequenceWindow
impl Freeze for SequenceWindow
impl RefUnwindSafe for SequenceWindow
impl Send for SequenceWindow
impl Sync for SequenceWindow
impl Unpin for SequenceWindow
impl UnsafeUnpin for SequenceWindow
impl UnwindSafe for SequenceWindow
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