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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Serialize this value into the given Serde serializer. Read more
Reports the evaluation layer of the spawn condition of the stream.
Reports the evaluation layer of the stream.
Reports the name of the stream.
Returns the type of the stream.
Indicates whether or not the stream is an input stream.
Indicates whether or not the stream has parameters.
Indicates whether or not the stream spawned / dynamically created.
Indicates whether or not the stream is closed.
Indicates how many values of the stream’s Type need to be memorized.
Produces a stream references referring to the stream.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.