pub struct LastValueAfterFinishChannel<T, R: Reducer<T>> { /* private fields */ }Expand description
Last-value-after-finish channel: value only available after finish() is called
Before finish(), get() returns the default value. After finish(),
the written value becomes available. Checkpoints persist only if finished.
Implementations§
Source§impl<T, R: Reducer<T>> LastValueAfterFinishChannel<T, R>
impl<T, R: Reducer<T>> LastValueAfterFinishChannel<T, R>
Trait Implementations§
Source§impl<T, R> Channel<T> for LastValueAfterFinishChannel<T, R>
impl<T, R> Channel<T> for LastValueAfterFinishChannel<T, R>
Source§fn update(&mut self, values: Vec<T>) -> bool
fn update(&mut self, values: Vec<T>) -> bool
Update the channel with new values. Returns true if the value changed.
Source§fn consume(&mut self) -> bool
fn consume(&mut self) -> bool
Check if the channel has been consumed (for trigger-based activation)
Source§fn checkpoint(&self) -> Option<Value>
fn checkpoint(&self) -> Option<Value>
Create a checkpoint of the current value for persistence
Auto Trait Implementations§
impl<T, R> Freeze for LastValueAfterFinishChannel<T, R>where
T: Freeze,
impl<T, R> RefUnwindSafe for LastValueAfterFinishChannel<T, R>where
T: RefUnwindSafe,
R: RefUnwindSafe,
impl<T, R> Send for LastValueAfterFinishChannel<T, R>
impl<T, R> Sync for LastValueAfterFinishChannel<T, R>
impl<T, R> Unpin for LastValueAfterFinishChannel<T, R>
impl<T, R> UnsafeUnpin for LastValueAfterFinishChannel<T, R>where
T: UnsafeUnpin,
impl<T, R> UnwindSafe for LastValueAfterFinishChannel<T, R>where
T: UnwindSafe,
R: UnwindSafe,
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