pub enum ChannelSpec {
LastValue,
Reducer(ReducerType),
Ephemeral,
AnyValue,
}Expand description
Specification for how a channel behaves.
This is used during graph construction to determine how state fields should handle concurrent updates.
Variants§
LastValue
Keep the last written value. If multiple values are written in the same step, an error is raised.
Reducer(ReducerType)
Apply a reducer function to combine values.
Ephemeral
Value is cleared after each step (not persisted). This is useful for temporary computation results.
AnyValue
Allow any value, last writer wins (no error on concurrent writes).
Trait Implementations§
Source§impl Clone for ChannelSpec
impl Clone for ChannelSpec
Source§impl Debug for ChannelSpec
impl Debug for ChannelSpec
Source§impl Default for ChannelSpec
impl Default for ChannelSpec
impl Eq for ChannelSpec
Source§impl PartialEq for ChannelSpec
impl PartialEq for ChannelSpec
impl StructuralPartialEq for ChannelSpec
Auto Trait Implementations§
impl Freeze for ChannelSpec
impl RefUnwindSafe for ChannelSpec
impl Send for ChannelSpec
impl Sync for ChannelSpec
impl Unpin for ChannelSpec
impl UnsafeUnpin for ChannelSpec
impl UnwindSafe for ChannelSpec
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.