pub struct EphemeralValue<T: Clone + Send + Sync + Serialize + DeserializeOwned + 'static> { /* private fields */ }Expand description
EphemeralValue — cleared after each superstep. One-time signal. Used for temporary routing signals, one-shot flags.
Implementations§
Trait Implementations§
Source§impl<T: Clone + Send + Sync + Serialize + DeserializeOwned + 'static> Channel for EphemeralValue<T>
impl<T: Clone + Send + Sync + Serialize + DeserializeOwned + 'static> Channel for EphemeralValue<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 is_ephemeral(&self) -> bool
fn is_ephemeral(&self) -> bool
Whether this channel should be cleared between supersteps. Read more
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§impl<T: Clone + Clone + Send + Sync + Serialize + DeserializeOwned + 'static> Clone for EphemeralValue<T>
impl<T: Clone + Clone + Send + Sync + Serialize + DeserializeOwned + 'static> Clone for EphemeralValue<T>
Source§fn clone(&self) -> EphemeralValue<T>
fn clone(&self) -> EphemeralValue<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug + Clone + Send + Sync + Serialize + DeserializeOwned + 'static> Debug for EphemeralValue<T>
impl<T: Debug + Clone + Send + Sync + Serialize + DeserializeOwned + 'static> Debug for EphemeralValue<T>
Auto Trait Implementations§
impl<T> Freeze for EphemeralValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for EphemeralValue<T>where
T: RefUnwindSafe,
impl<T> Send for EphemeralValue<T>
impl<T> Sync for EphemeralValue<T>
impl<T> Unpin for EphemeralValue<T>where
T: Unpin,
impl<T> UnsafeUnpin for EphemeralValue<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for EphemeralValue<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