pub struct CacheBuilder<T: BaseStorePoint, U: Cache> { /* private fields */ }Expand description
Using builder pattern for Cache trait. This builder is required [T] impl Clone trait to use.
Implementations§
Source§impl<T, U> CacheBuilder<T, U>
impl<T, U> CacheBuilder<T, U>
Sourcepub fn build_check(
&self,
client: Client,
sha: SHA,
) -> impl Future<Output = Result<U>> + Send + '_
pub fn build_check( &self, client: Client, sha: SHA, ) -> impl Future<Output = Result<U>> + Send + '_
run [U::check_cache] from builder and return the result.
Sourcepub fn build_try(
&self,
client: Client,
) -> impl Future<Output = Result<U>> + Send + '_
pub fn build_try( &self, client: Client, ) -> impl Future<Output = Result<U>> + Send + '_
run [U::try_cache] from builder and return the result.
pub fn build_refresh( &self, client: Client, ) -> impl Future<Output = Result<U>> + Send + '_
Auto Trait Implementations§
impl<T, U> Freeze for CacheBuilder<T, U>where
T: Freeze,
impl<T, U> RefUnwindSafe for CacheBuilder<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for CacheBuilder<T, U>where
U: Send,
impl<T, U> Sync for CacheBuilder<T, U>where
U: Sync,
impl<T, U> Unpin for CacheBuilder<T, U>
impl<T, U> UnwindSafe for CacheBuilder<T, U>where
T: UnwindSafe,
U: 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