Struct rtlola_hir::hir::selector::StreamSelector
source · pub struct StreamSelector<'a, M: HirMode + TypedTrait, S: Selectable> { /* private fields */ }
Expand description
A StreamSelector combines different selectors to extract specific stream classes from the Hir. It captures a subset of output streams, where each stream matches all selectors of the StreamSelector.
Implementations§
source§impl<'a, M: HirMode + TypedTrait, S: Selectable> StreamSelector<'a, M, S>
impl<'a, M: HirMode + TypedTrait, S: Selectable> StreamSelector<'a, M, S>
sourcepub fn unfiltered(self) -> Self
pub fn unfiltered(self) -> Self
Selects streams without a filter condition.
sourcepub fn filter(self, selector: FilterSelector) -> Self
pub fn filter(self, selector: FilterSelector) -> Self
Selects streams with the filter behaviour specified by the FilterSelector.
sourcepub fn periodic_eval(self) -> Self
pub fn periodic_eval(self) -> Self
Selects streams with periodic evaluation pacing.
sourcepub fn event_based_eval(self) -> Self
pub fn event_based_eval(self) -> Self
Selects streams with event-based evaluation pacing.
sourcepub fn eval(self, selector: PacingSelector) -> Self
pub fn eval(self, selector: PacingSelector) -> Self
Selects streams with an evaluation pacing matching the PacingSelector.
source§impl<'a, M: HirMode + TypedTrait> StreamSelector<'a, M, All>
impl<'a, M: HirMode + TypedTrait> StreamSelector<'a, M, All>
sourcepub fn all(hir: &'a RtLolaHir<M>) -> Self
pub fn all(hir: &'a RtLolaHir<M>) -> Self
Creates a new StreamSelector matching all output streams.
sourcepub fn static_streams(self) -> StreamSelector<'a, M, Static>
pub fn static_streams(self) -> StreamSelector<'a, M, Static>
Selects statically created streams. I.e. only streams without a spawn condition.
sourcepub fn dynamic_streams(self) -> StreamSelector<'a, M, Dynamic>
pub fn dynamic_streams(self) -> StreamSelector<'a, M, Dynamic>
Selects dynamically created streams. I.e. only streams with a spawn condition.
source§impl<'a, M: HirMode + TypedTrait> StreamSelector<'a, M, Dynamic>
impl<'a, M: HirMode + TypedTrait> StreamSelector<'a, M, Dynamic>
sourcepub fn periodic_spawn(self) -> Self
pub fn periodic_spawn(self) -> Self
Selects streams with a periodic spawn pacing.
sourcepub fn event_based_spawn(self) -> Self
pub fn event_based_spawn(self) -> Self
Selects streams with a event-based spawn pacing.
sourcepub fn spawn(self, selector: PacingSelector) -> Self
pub fn spawn(self, selector: PacingSelector) -> Self
Selects streams with a spawn pacing matching the PacingSelector.
sourcepub fn close(self, selector: CloseSelector) -> Self
pub fn close(self, selector: CloseSelector) -> Self
Selects streams with a closing behaviour matching the CloseSelector
sourcepub fn parameterized(self) -> Self
pub fn parameterized(self) -> Self
Selects streams with parameters
sourcepub fn not_parameterized(self) -> Self
pub fn not_parameterized(self) -> Self
Selects streams without parameters
sourcepub fn parameters(self, selector: ParameterSelector) -> Self
pub fn parameters(self, selector: ParameterSelector) -> Self
Selects streams with a parameter configuration matching the ParameterSelector
Trait Implementations§
source§impl<'a, M: Clone + HirMode + TypedTrait, S: Clone + Selectable> Clone for StreamSelector<'a, M, S>
impl<'a, M: Clone + HirMode + TypedTrait, S: Clone + Selectable> Clone for StreamSelector<'a, M, S>
source§fn clone(&self) -> StreamSelector<'a, M, S>
fn clone(&self) -> StreamSelector<'a, M, S>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more