pub enum Locked {
Write(WritePermit),
Read(ReadLock),
}
Expand description
A struct representing locked cache access
Variants§
Write(WritePermit)
The writer is allowed to fetch the asset
Read(ReadLock)
The reader waits for the writer to fetch the asset
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Locked
impl RefUnwindSafe for Locked
impl Send for Locked
impl Sync for Locked
impl Unpin for Locked
impl UnwindSafe for Locked
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