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 duplicate 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 Ord for StreamAccessKind
impl Ord for StreamAccessKind
Source§fn cmp(&self, other: &StreamAccessKind) -> Ordering
fn cmp(&self, other: &StreamAccessKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreamAccessKind
impl PartialEq for StreamAccessKind
Source§impl PartialOrd for StreamAccessKind
impl PartialOrd for StreamAccessKind
impl Copy for StreamAccessKind
impl Eq for StreamAccessKind
impl StructuralPartialEq for StreamAccessKind
Auto Trait Implementations§
impl Freeze for StreamAccessKind
impl RefUnwindSafe for StreamAccessKind
impl Send for StreamAccessKind
impl Sync for StreamAccessKind
impl Unpin for StreamAccessKind
impl UnwindSafe for StreamAccessKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more