pub struct ActorWrites {
pub clear_all: bool,
pub entries: BTreeMap<String, Option<Vec<u8>>>,
pub alarm: Option<Option<OffsetDateTime>>,
}Expand description
The writes one handler call staged, applied by ActorStore::commit.
clear_all runs first, then entries in key order (Some puts, None
deletes); alarm is applied last. An empty set (Self::is_empty) means
the host skips the commit entirely.
Fields§
§clear_all: boolDelete every key in the actor before applying entries.
entries: BTreeMap<String, Option<Vec<u8>>>Staged writes: Some is a put, None a delete.
alarm: Option<Option<OffsetDateTime>>The alarm to apply: Some(Some(at)) sets, Some(None) cancels,
None leaves it untouched.
Implementations§
Trait Implementations§
Source§impl Clone for ActorWrites
impl Clone for ActorWrites
Source§impl Debug for ActorWrites
impl Debug for ActorWrites
Source§impl Default for ActorWrites
impl Default for ActorWrites
impl Eq for ActorWrites
Source§impl PartialEq for ActorWrites
impl PartialEq for ActorWrites
impl StructuralPartialEq for ActorWrites
Auto Trait Implementations§
impl Freeze for ActorWrites
impl RefUnwindSafe for ActorWrites
impl Send for ActorWrites
impl Sync for ActorWrites
impl Unpin for ActorWrites
impl UnsafeUnpin for ActorWrites
impl UnwindSafe for ActorWrites
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.