Skip to main content

Module lock

Module lock 

Source
Expand description

Cache lock

Structs§

CacheLock
The global cache locking manager
LockCore
LockStub
ReadLock
ReadLock: the requests who get it need to wait until it is released
UnusableFill
One fill a reader cannot use, and why. Per token rather than per set, because a key has one UnusableFills and a set-wide reason would attribute one part of an application’s give-up to another’s cause.
UnusableFills
The fills a reader cannot use. Put one in a crate::CacheKey’s extensions and crate::HttpCache::cache_lock_wait honours it. Empty waits as normal.
WritePermit
WritePermit: requires who get it need to populate the cache and then release it

Enums§

LockStatus
Status which the read locks could possibly see.
LockWaitOutcome
What happened to this reader’s cache-lock wait, and so what to do next.
Locked
A struct representing locked cache access
WaitOutcome
How a wait behind a writer ended.

Traits§

CacheKeyLock

Type Aliases§

CacheKeyLockImpl