pub enum CachePut {
Stored,
Stale,
Disabled,
}Expand description
What a put did. Stale is the only outcome that means the caller is holding older data
than the store — Disabled is not a refusal, it is a cache that simply isn’t storing
anything, so a caller that repaints from what it just tried to write is still correct.
Variants§
Trait Implementations§
impl Copy for CachePut
impl Eq for CachePut
impl StructuralPartialEq for CachePut
Auto Trait Implementations§
impl Freeze for CachePut
impl RefUnwindSafe for CachePut
impl Send for CachePut
impl Sync for CachePut
impl Unpin for CachePut
impl UnsafeUnpin for CachePut
impl UnwindSafe for CachePut
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