pub struct AsyncArrayShardedReadableExtCache { /* private fields */ }Available on crate features
sharding and async only.Expand description
A cache used for methods in the AsyncArrayShardedReadableExt trait.
Implementations§
Source§impl AsyncArrayShardedReadableExtCache
impl AsyncArrayShardedReadableExtCache
Sourcepub fn new<TStorage: ?Sized + AsyncReadableStorageTraits>(
array: &Array<TStorage>,
) -> Self
pub fn new<TStorage: ?Sized + AsyncReadableStorageTraits>( array: &Array<TStorage>, ) -> Self
Create a new cache for an array.
Sourcepub fn array_is_sharded(&self) -> bool
pub fn array_is_sharded(&self) -> bool
Returns true if the array is sharded.
This is cheaper than calling ArrayShardedExt::is_sharded repeatedly.
Sourcepub fn array_is_exclusively_sharded(&self) -> bool
pub fn array_is_exclusively_sharded(&self) -> bool
Returns true if the array is exclusively sharded (no array-to-array or bytes-to-bytes codecs).
This is cheaper than calling ArrayShardedExt::is_exclusively_sharded repeatedly.
Auto Trait Implementations§
impl Freeze for AsyncArrayShardedReadableExtCache
impl Send for AsyncArrayShardedReadableExtCache
impl Sync for AsyncArrayShardedReadableExtCache
impl !RefUnwindSafe for AsyncArrayShardedReadableExtCache
impl Unpin for AsyncArrayShardedReadableExtCache
impl UnsafeUnpin for AsyncArrayShardedReadableExtCache
impl !UnwindSafe for AsyncArrayShardedReadableExtCache
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