pub struct LockCore {
pub lock_start: Instant,
pub age_timeout: Duration,
/* private fields */
}Fields§
§lock_start: Instant§age_timeout: DurationImplementations§
Source§impl LockCore
impl LockCore
pub fn new_arc( timeout: Duration, stale_writer: bool, extensions: Extensions, ) -> Arc<Self>
pub fn locked(&self) -> bool
pub fn unlock(&self, reason: LockStatus)
pub fn lock_status(&self) -> LockStatus
Sourcepub fn stale_writer(&self) -> bool
pub fn stale_writer(&self) -> bool
Was this lock for a stale cache fetch writer?
pub fn extensions(&self) -> &Extensions
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LockCore
impl !RefUnwindSafe for LockCore
impl Send for LockCore
impl Sync for LockCore
impl Unpin for LockCore
impl !UnwindSafe for LockCore
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