#[repr(u8)]pub enum LockStatus {
Waiting = 0,
Done = 1,
TransientError = 2,
GiveUp = 3,
Dangling = 4,
WaitTimeout = 5,
AgeTimeout = 6,
}Expand description
Status which the read locks could possibly see.
Variants§
Waiting = 0
Waiting for the writer to populate the asset
Done = 1
The writer finishes, readers can start
TransientError = 2
The writer encountered error, such as network issue. A new writer will be elected.
GiveUp = 3
The writer observed that no cache lock is needed (e.g., uncacheable), readers should start to fetch independently without a new writer
Dangling = 4
The write lock is dropped without being unlocked
WaitTimeout = 5
Reader has held onto cache locks for too long, give up
AgeTimeout = 6
The lock is held for too long by the writer
Implementations§
Source§impl LockStatus
impl LockStatus
Trait Implementations§
Source§impl Clone for LockStatus
impl Clone for LockStatus
Source§fn clone(&self) -> LockStatus
fn clone(&self) -> LockStatus
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 moreSource§impl Debug for LockStatus
impl Debug for LockStatus
Source§impl<'_derivative_strum> From<&'_derivative_strum LockStatus> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum LockStatus> for &'static str
Source§fn from(x: &'_derivative_strum LockStatus) -> &'static str
fn from(x: &'_derivative_strum LockStatus) -> &'static str
Converts to this type from the input type.
Source§impl From<LockStatus> for &'static str
impl From<LockStatus> for &'static str
Source§fn from(x: LockStatus) -> &'static str
fn from(x: LockStatus) -> &'static str
Converts to this type from the input type.
Source§impl From<LockStatus> for u8
impl From<LockStatus> for u8
Source§fn from(l: LockStatus) -> u8
fn from(l: LockStatus) -> u8
Converts to this type from the input type.
Source§impl From<u8> for LockStatus
impl From<u8> for LockStatus
Source§impl PartialEq for LockStatus
impl PartialEq for LockStatus
impl Copy for LockStatus
impl Eq for LockStatus
impl StructuralPartialEq for LockStatus
Auto Trait Implementations§
impl Freeze for LockStatus
impl RefUnwindSafe for LockStatus
impl Send for LockStatus
impl Sync for LockStatus
impl Unpin for LockStatus
impl UnwindSafe for LockStatus
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.