#[non_exhaustive]pub enum LockResult {
Locked,
TimedOut,
}Expand description
Outcome of CheckpointProcess::try_lock.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Locked
Lock completed and the process entered ProcessState::Locked.
TimedOut
Lock call timed out and the process remained in ProcessState::Running.
Trait Implementations§
Source§impl Clone for LockResult
impl Clone for LockResult
Source§fn clone(&self) -> LockResult
fn clone(&self) -> LockResult
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 moreimpl Copy for LockResult
Source§impl Debug for LockResult
impl Debug for LockResult
impl Eq for LockResult
Source§impl Hash for LockResult
impl Hash for LockResult
Source§impl PartialEq for LockResult
impl PartialEq for LockResult
Source§fn eq(&self, other: &LockResult) -> bool
fn eq(&self, other: &LockResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LockResult
Auto Trait Implementations§
impl Freeze for LockResult
impl RefUnwindSafe for LockResult
impl Send for LockResult
impl Sync for LockResult
impl Unpin for LockResult
impl UnsafeUnpin for LockResult
impl UnwindSafe for LockResult
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