pub enum DataCacheLookup<T> {
Fresh(Rc<T>),
Stale(Rc<T>),
Miss,
}Expand description
缓存查询结果。fresh 可直接展示;stale 只能先展示再后台刷新。
Variants§
Trait Implementations§
Source§impl<T: Debug> Debug for DataCacheLookup<T>
impl<T: Debug> Debug for DataCacheLookup<T>
Source§impl<T: PartialEq> PartialEq for DataCacheLookup<T>
impl<T: PartialEq> PartialEq for DataCacheLookup<T>
impl<T: PartialEq> StructuralPartialEq for DataCacheLookup<T>
Auto Trait Implementations§
impl<T> !Send for DataCacheLookup<T>
impl<T> !Sync for DataCacheLookup<T>
impl<T> Forget for DataCacheLookup<T>
impl<T> Freeze for DataCacheLookup<T>
impl<T> Move for DataCacheLookup<T>
impl<T> RefUnwindSafe for DataCacheLookup<T>where
Rc<T>: RefUnwindSafe,
impl<T> Unpin for DataCacheLookup<T>
impl<T> UnsafeUnpin for DataCacheLookup<T>
impl<T> UnwindSafe for DataCacheLookup<T>where
Rc<T>: UnwindSafe,
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