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>

source

pub fn filtered(self) -> Self

Selects streams with a filter condition.

source

pub fn unfiltered(self) -> Self

Selects streams without a filter condition.

source

pub fn filter(self, selector: FilterSelector) -> Self

Selects streams with the filter behaviour specified by the FilterSelector.

source

pub fn periodic_eval(self) -> Self

Selects streams with periodic evaluation pacing.

source

pub fn event_based_eval(self) -> Self

Selects streams with event-based evaluation pacing.

source

pub fn eval(self, selector: PacingSelector) -> Self

Selects streams with an evaluation pacing matching the PacingSelector.

source

pub fn build(self) -> impl Iterator<Item = &'a Output>

Construct the represented subset of output streams matching the given selections.

source§

impl<'a, M: HirMode + TypedTrait> StreamSelector<'a, M, All>

source

pub fn all(hir: &'a RtLolaHir<M>) -> Self

Creates a new StreamSelector matching all output streams.

source

pub fn static_streams(self) -> StreamSelector<'a, M, Static>

Selects statically created streams. I.e. only streams without a spawn condition.

source

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>

source

pub fn periodic_spawn(self) -> Self

Selects streams with a periodic spawn pacing.

source

pub fn event_based_spawn(self) -> Self

Selects streams with a event-based spawn pacing.

source

pub fn spawn(self, selector: PacingSelector) -> Self

Selects streams with a spawn pacing matching the PacingSelector.

source

pub fn close(self, selector: CloseSelector) -> Self

Selects streams with a closing behaviour matching the CloseSelector

source

pub fn parameterized(self) -> Self

Selects streams with parameters

source

pub fn not_parameterized(self) -> Self

Selects streams without parameters

source

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>

source§

fn clone(&self) -> StreamSelector<'a, M, S>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, M: Debug + HirMode + TypedTrait, S: Debug + Selectable> Debug for StreamSelector<'a, M, S>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

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§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.