pub struct EntryGuard<'a> { /* private fields */ }Expand description
Guard for a locked shard entry that allows atomic operations
Implementations§
Source§impl<'a> EntryGuard<'a>
impl<'a> EntryGuard<'a>
Sourcepub fn evaluate(&self, command: &Command) -> ApplyOutcome
pub fn evaluate(&self, command: &Command) -> ApplyOutcome
Evaluates what would happen if the command were applied without mutating state
Sourcepub fn apply(&mut self, command: &Command) -> ApplyOutcome
pub fn apply(&mut self, command: &Command) -> ApplyOutcome
Applies a command to the locked entry and returns the outcome
Auto Trait Implementations§
impl<'a> Freeze for EntryGuard<'a>
impl<'a> !RefUnwindSafe for EntryGuard<'a>
impl<'a> !Send for EntryGuard<'a>
impl<'a> Sync for EntryGuard<'a>
impl<'a> Unpin for EntryGuard<'a>
impl<'a> UnsafeUnpin for EntryGuard<'a>
impl<'a> !UnwindSafe for EntryGuard<'a>
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