Enum rtlola_parser::ast::StreamAccessKind
source · pub enum StreamAccessKind {
Sync,
Hold,
Get,
Fresh,
}
Expand description
Describes the operation used to access a stream
Variants§
Sync
Synchronous access
Hold
Hold access for incompatible stream types, returns previous known value
Get
Optional access, returns value if it exists, called by .get()
Fresh
Boolean Typed access, returning true if the target stream received a new value at the current timestamp. Called with .is_fresh()
.
Trait Implementations§
source§impl Clone for StreamAccessKind
impl Clone for StreamAccessKind
source§fn clone(&self) -> StreamAccessKind
fn clone(&self) -> StreamAccessKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StreamAccessKind
impl Debug for StreamAccessKind
source§impl Hash for StreamAccessKind
impl Hash for StreamAccessKind
source§impl PartialEq<StreamAccessKind> for StreamAccessKind
impl PartialEq<StreamAccessKind> for StreamAccessKind
source§fn eq(&self, other: &StreamAccessKind) -> bool
fn eq(&self, other: &StreamAccessKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.