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
sourceimpl<'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.
sourceimpl<'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.
sourceimpl<'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
sourceimpl<'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>
sourcefn clone(&self) -> StreamSelector<'a, M, S>
fn clone(&self) -> StreamSelector<'a, M, S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, M: Debug + HirMode + TypedTrait, S: Debug + Selectable> Debug for StreamSelector<'a, M, S>
impl<'a, M: Debug + HirMode + TypedTrait, S: Debug + Selectable> Debug for StreamSelector<'a, M, S>
impl<'a, M: Copy + HirMode + TypedTrait, S: Copy + Selectable> Copy for StreamSelector<'a, M, S>
Auto Trait Implementations
impl<'a, M, S> RefUnwindSafe for StreamSelector<'a, M, S> where
M: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, M, S> Send for StreamSelector<'a, M, S> where
M: Sync,
S: Send,
impl<'a, M, S> Sync for StreamSelector<'a, M, S> where
M: Sync,
S: Sync,
impl<'a, M, S> Unpin for StreamSelector<'a, M, S> where
S: Unpin,
impl<'a, M, S> UnwindSafe for StreamSelector<'a, M, S> where
M: RefUnwindSafe,
S: UnwindSafe,
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