pub enum SnapshotOperation<T, const N: usize> {
Scan(ProcessId, Option<[T; N]>),
Update(ProcessId, T),
}
Expand description
An operation for a snapshot object.
Variants§
Scan(ProcessId, Option<[T; N]>)
Scan the object and return an view containing the values in each component.
If the return value of a scan is not-yet-known, this can be represented
as Scan(pid, None)
.
Update(ProcessId, T)
Update the component of the object belonging to this process.
Trait Implementations§
Source§impl<T: Clone, const N: usize> Clone for SnapshotOperation<T, N>
impl<T: Clone, const N: usize> Clone for SnapshotOperation<T, N>
Source§fn clone(&self) -> SnapshotOperation<T, N>
fn clone(&self) -> SnapshotOperation<T, N>
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 moreimpl<T: Copy, const N: usize> Copy for SnapshotOperation<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for SnapshotOperation<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for SnapshotOperation<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for SnapshotOperation<T, N>where
T: Send,
impl<T, const N: usize> Sync for SnapshotOperation<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for SnapshotOperation<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for SnapshotOperation<T, N>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