Struct wit_deps::WriteCache
source · pub struct WriteCache<T>(pub T);
Expand description
Write-only Cache wrapper
Tuple Fields§
§0: T
Implementations§
Trait Implementations§
source§impl<T: Cache + Sync + Send> Cache for Write<T>
impl<T: Cache + Sync + Send> Cache for Write<T>
source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 Url,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Read>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 Url,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Read>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns an read handle for the entry from the cache associated with a given url
Auto Trait Implementations§
impl<T> Freeze for Write<T>where
T: Freeze,
impl<T> RefUnwindSafe for Write<T>where
T: RefUnwindSafe,
impl<T> Send for Write<T>where
T: Send,
impl<T> Sync for Write<T>where
T: Sync,
impl<T> Unpin for Write<T>where
T: Unpin,
impl<T> UnwindSafe for Write<T>where
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