pub struct OutputStream {
    pub name: String,
    pub ty: Type,
    pub spawn: Spawn,
    pub eval: Eval,
    pub close: Close,
    pub accesses: Vec<(StreamReference, Vec<StreamAccessKind>)>,
    pub accessed_by: Vec<(StreamReference, Vec<StreamAccessKind>)>,
    pub aggregated_by: Vec<(StreamReference, WindowReference)>,
    pub memory_bound: MemorizationBound,
    pub layer: StreamLayers,
    pub reference: StreamReference,
    pub params: Vec<Parameter>,
}
Expand description

Contains all information relevant to every kind of output stream.

Refer to TimeDrivenStream, EventDrivenStream, and Trigger, as well as their respective fields in the Mir for additional information.

Fields§

§name: String

The name of the stream.

§ty: Type

The value type of the stream.

§spawn: Spawn

Information on the spawn behavior of the stream

§eval: Eval

Information on the evaluation behavior of the stream

§close: Close

The condition under which the stream is supposed to be closed

§accesses: Vec<(StreamReference, Vec<StreamAccessKind>)>

The collection of streams this stream accesses non-transitively. Includes this stream’s spawn, evaluation condition, and close expressions.

§accessed_by: Vec<(StreamReference, Vec<StreamAccessKind>)>

The collection of streams that access the current stream non-transitively

§aggregated_by: Vec<(StreamReference, WindowReference)>

The collection of sliding windows that access this stream non-transitively. This includes both sliding and discrete windows.

§memory_bound: MemorizationBound

Provides the number of values of this stream’s type that need to be memorized. Refer to Type::size to get a type’s byte-size.

§layer: StreamLayers

Provides the evaluation of layer of this stream.

§reference: StreamReference

The reference referring to this stream

§params: Vec<Parameter>

The parameters of a parameterized output stream; The vector is empty in non-parametrized streams

Trait Implementations§

source§

impl Clone for OutputStream

source§

fn clone(&self) -> OutputStream

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 Debug for OutputStream

source§

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

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

impl<'de> Deserialize<'de> for OutputStream

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<OutputStream> for OutputStream

source§

fn eq(&self, other: &OutputStream) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for OutputStream

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Stream for OutputStream

source§

fn spawn_layer(&self) -> Layer

Reports the evaluation layer of the spawn condition of the stream.
source§

fn eval_layer(&self) -> Layer

Reports the evaluation layer of the stream.
source§

fn name(&self) -> &str

Reports the name of the stream.
source§

fn ty(&self) -> &Type

Returns the type of the stream.
source§

fn is_input(&self) -> bool

Indicates whether or not the stream is an input stream.
source§

fn is_parameterized(&self) -> bool

Indicates whether or not the stream has parameters.
source§

fn is_spawned(&self) -> bool

Indicates whether or not the stream spawned / dynamically created.
source§

fn is_closed(&self) -> bool

Indicates whether or not the stream is closed.
source§

fn values_to_memorize(&self) -> MemorizationBound

Indicates how many values of the stream’s Type need to be memorized.
source§

fn as_stream_ref(&self) -> StreamReference

Produces a stream references referring to the stream.
source§

impl StructuralPartialEq for OutputStream

Auto Trait Implementations§

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.
source§

impl<T> DeserializeOwned for Twhere
    T: for<'de> Deserialize<'de>,