pub struct LastValue<T: Clone + Send + Sync + Serialize + DeserializeOwned + 'static> { /* private fields */ }Expand description
LastValue — stores the last written value. Default channel type. At most one update per step. Last write wins.
Implementations§
Trait Implementations§
Source§impl<T: Clone + Send + Sync + Serialize + DeserializeOwned + 'static> Channel for LastValue<T>
impl<T: Clone + Send + Sync + Serialize + DeserializeOwned + 'static> Channel for LastValue<T>
Source§fn merge(&mut self, update: Box<dyn Any + Send>)
fn merge(&mut self, update: Box<dyn Any + Send>)
Merge a boxed update value into this channel.
Source§fn clone_box(&self) -> Box<dyn Channel>
fn clone_box(&self) -> Box<dyn Channel>
Clone the channel (for snapshot isolation during parallel execution).
Source§fn checkpoint(&self) -> Result<Vec<u8>, PeError>
fn checkpoint(&self) -> Result<Vec<u8>, PeError>
Serialize channel state for checkpointing. Read more
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast support — returns self as
&mut dyn Any.Source§fn is_ephemeral(&self) -> bool
fn is_ephemeral(&self) -> bool
Whether this channel should be cleared between supersteps. Read more
Auto Trait Implementations§
impl<T> Freeze for LastValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for LastValue<T>where
T: RefUnwindSafe,
impl<T> Send for LastValue<T>
impl<T> Sync for LastValue<T>
impl<T> Unpin for LastValue<T>where
T: Unpin,
impl<T> UnsafeUnpin for LastValue<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LastValue<T>where
T: 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