pub enum LockStatus {
Waiting,
Done,
TransientError,
GiveUp,
Dangling,
Timeout,
}
Expand description
Status which the read locks could possibly see.
Variants§
Waiting
Waiting for the writer to populate the asset
Done
The writer finishes, readers can start
TransientError
The writer encountered error, such as network issue. A new writer will be elected.
GiveUp
The writer observed that no cache lock is needed (e.g., uncacheable), readers should start to fetch independently without a new writer
Dangling
The write lock is dropped without being unlocked
Timeout
The lock is held for too long
Trait Implementations§
Source§impl Clone for LockStatus
impl Clone for LockStatus
Source§fn clone(&self) -> LockStatus
fn clone(&self) -> LockStatus
Returns a copy 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.