pub struct NamespacedCache<C> { /* private fields */ }Expand description
Cache decorator that prefixes every id with a fixed namespace.
Implementations§
Trait Implementations§
Source§impl<C: Cache> Cache for NamespacedCache<C>
impl<C: Cache> Cache for NamespacedCache<C>
Source§fn last_build<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 ActionId,
) -> Pin<Box<dyn Future<Output = Option<BuildEvent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn last_build<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 ActionId,
) -> Pin<Box<dyn Future<Output = Option<BuildEvent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Last recorded event for
id, or None if the action has never run.Auto Trait Implementations§
impl<C> Freeze for NamespacedCache<C>where
C: Freeze,
impl<C> RefUnwindSafe for NamespacedCache<C>where
C: RefUnwindSafe,
impl<C> Send for NamespacedCache<C>where
C: Send,
impl<C> Sync for NamespacedCache<C>where
C: Sync,
impl<C> Unpin for NamespacedCache<C>where
C: Unpin,
impl<C> UnsafeUnpin for NamespacedCache<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for NamespacedCache<C>where
C: 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