Struct rtlola_frontend::mir::Schedule
source · [−]Expand description
A schedule for the periodic streams.
The schedule is a sequence of deadlines and describes a single hyper-period. Hence, the sequences is meant to repeat afterwards.
Fields
hyper_period: Option<Duration>
The hyper_period
is the duration after which the schedule is meant to repeat.
It is therefore the least common multiple of all periods. If there are no statically scheduled streams, the hyper-period is None
.
Example:
If there are three streams, one running at 0.5Hz, one with 1Hz, and one with 2Hz. The hyper-period then is 2000ms.
deadlines: Vec<Deadline>
A sequence of deadlines within a hyper-period.
Deadlines represent points in time at which periodic stream needs to be updated. Deadlines may not be empty. The first deadline is due Deadline::pause time units after the start of the schedule. Subsequent deadlines are due Deadline::pause time units after their predecessor.
Example:
Assume there are two periodic streams, a
running at 1Hz and b
running at 2Hz. The deadlines are thus {b
} at time 500ms and {a
, b
}
500ms later. Then, the schedule repeats.
See Also
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnwindSafe for Schedule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more