Struct zarrs::array::codec::BytesPartialDecoderCache
source · pub struct BytesPartialDecoderCache<'a> { /* private fields */ }
Expand description
A cache for a BytesPartialDecoderTraits
partial decoder.
Implementations§
source§impl<'a> BytesPartialDecoderCache<'a>
impl<'a> BytesPartialDecoderCache<'a>
sourcepub fn new(
input_handle: &dyn BytesPartialDecoderTraits,
options: &CodecOptions
) -> Result<Self, CodecError>
pub fn new( input_handle: &dyn BytesPartialDecoderTraits, options: &CodecOptions ) -> Result<Self, CodecError>
sourcepub async fn async_new(
input_handle: &dyn AsyncBytesPartialDecoderTraits,
options: &CodecOptions
) -> Result<BytesPartialDecoderCache<'a>, CodecError>
Available on crate feature async
only.
pub async fn async_new( input_handle: &dyn AsyncBytesPartialDecoderTraits, options: &CodecOptions ) -> Result<BytesPartialDecoderCache<'a>, CodecError>
async
only.Trait Implementations§
source§impl AsyncBytesPartialDecoderTraits for BytesPartialDecoderCache<'_>
Available on crate feature async
only.
impl AsyncBytesPartialDecoderTraits for BytesPartialDecoderCache<'_>
Available on crate feature
async
only.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
source§impl BytesPartialDecoderTraits for BytesPartialDecoderCache<'_>
impl BytesPartialDecoderTraits for BytesPartialDecoderCache<'_>
source§fn partial_decode(
&self,
decoded_regions: &[ByteRange],
_options: &CodecOptions
) -> Result<Option<Vec<Vec<u8>>>, CodecError>
fn partial_decode( &self, decoded_regions: &[ByteRange], _options: &CodecOptions ) -> Result<Option<Vec<Vec<u8>>>, CodecError>
Partially decode bytes. Read more
source§fn partial_decode_concat(
&self,
decoded_regions: &[ByteRange],
options: &CodecOptions
) -> Result<Option<Vec<u8>>, CodecError>
fn partial_decode_concat( &self, decoded_regions: &[ByteRange], options: &CodecOptions ) -> Result<Option<Vec<u8>>, CodecError>
Partially decode bytes and concatenate. Read more
source§fn decode(&self, options: &CodecOptions) -> Result<MaybeBytes, CodecError>
fn decode(&self, options: &CodecOptions) -> Result<MaybeBytes, CodecError>
Decode all bytes. Read more
Auto Trait Implementations§
impl<'a> Freeze for BytesPartialDecoderCache<'a>
impl<'a> RefUnwindSafe for BytesPartialDecoderCache<'a>
impl<'a> Send for BytesPartialDecoderCache<'a>
impl<'a> Sync for BytesPartialDecoderCache<'a>
impl<'a> Unpin for BytesPartialDecoderCache<'a>
impl<'a> UnwindSafe for BytesPartialDecoderCache<'a>
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