Struct zarrs::array::codec::AsyncStoragePartialDecoder
source · pub struct AsyncStoragePartialDecoder { /* private fields */ }
Available on crate feature
async
only.Expand description
An AsyncReadableStorage
store value partial decoder.
Implementations§
source§impl AsyncStoragePartialDecoder
impl AsyncStoragePartialDecoder
sourcepub fn new(storage: AsyncReadableStorage, key: StoreKey) -> Self
pub fn new(storage: AsyncReadableStorage, key: StoreKey) -> Self
Create a new storage partial decoder.
Trait Implementations§
source§impl AsyncBytesPartialDecoderTraits for AsyncStoragePartialDecoder
impl AsyncBytesPartialDecoderTraits for AsyncStoragePartialDecoder
source§fn partial_decode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
decoded_regions: &'life1 [ByteRange],
_options: &'life2 CodecOptions
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Vec<u8>>>, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn partial_decode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
decoded_regions: &'life1 [ByteRange],
_options: &'life2 CodecOptions
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Vec<u8>>>, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Partially decode bytes. Read more
source§fn partial_decode_concat<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
decoded_regions: &'life1 [ByteRange],
options: &'life2 CodecOptions
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn partial_decode_concat<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
decoded_regions: &'life1 [ByteRange],
options: &'life2 CodecOptions
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Partially decode bytes and concatenate. Read more
source§fn decode<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 CodecOptions
) -> Pin<Box<dyn Future<Output = Result<MaybeBytes, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn decode<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 CodecOptions
) -> Pin<Box<dyn Future<Output = Result<MaybeBytes, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Decode all bytes. Read more
Auto Trait Implementations§
impl Freeze for AsyncStoragePartialDecoder
impl !RefUnwindSafe for AsyncStoragePartialDecoder
impl Send for AsyncStoragePartialDecoder
impl Sync for AsyncStoragePartialDecoder
impl Unpin for AsyncStoragePartialDecoder
impl !UnwindSafe for AsyncStoragePartialDecoder
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