pub struct BlobCache<B, H, S, T>where
B: BlobStoreGet<H>,
H: HashProtocol,
S: BlobSchema + 'static,
T: TryFromBlob<S>,
Handle<H, S>: ValueSchema,{ /* private fields */ }Expand description
Re-export of the blob cache wrapper. Lazy cache for blob conversions keyed by blob handle.
Implementations§
Source§impl<B, H, S, T> BlobCache<B, H, S, T>where
B: BlobStoreGet<H>,
H: HashProtocol,
S: BlobSchema + 'static,
T: TryFromBlob<S>,
Handle<H, S>: ValueSchema,
impl<B, H, S, T> BlobCache<B, H, S, T>where
B: BlobStoreGet<H>,
H: HashProtocol,
S: BlobSchema + 'static,
T: TryFromBlob<S>,
Handle<H, S>: ValueSchema,
Sourcepub fn with_capacity(blobs: B, capacity: usize) -> Self
pub fn with_capacity(blobs: B, capacity: usize) -> Self
Creates a new cache backed by blobs with the given entry capacity.
Auto Trait Implementations§
impl<B, H, S, T> Freeze for BlobCache<B, H, S, T>
impl<B, H, S, T> !RefUnwindSafe for BlobCache<B, H, S, T>
impl<B, H, S, T> Send for BlobCache<B, H, S, T>
impl<B, H, S, T> Sync for BlobCache<B, H, S, T>
impl<B, H, S, T> Unpin for BlobCache<B, H, S, T>
impl<B, H, S, T> UnsafeUnpin for BlobCache<B, H, S, T>
impl<B, H, S, T> !UnwindSafe for BlobCache<B, H, S, T>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more