Struct zarrs::array::codec::AsyncByteIntervalPartialDecoder
source · pub struct AsyncByteIntervalPartialDecoder<'a> { /* private fields */ }
Available on crate feature
async
only.Expand description
A partial decoder for a byte interval of a AsyncBytesPartialDecoderTraits
partial decoder.
Modifies byte range requests to a specific byte interval in an inner bytes partial decoder.
Implementations§
source§impl<'a> AsyncByteIntervalPartialDecoder<'a>
impl<'a> AsyncByteIntervalPartialDecoder<'a>
sourcepub fn new(
inner: &'a dyn AsyncBytesPartialDecoderTraits,
byte_offset: ByteOffset,
byte_length: ByteLength,
) -> Self
pub fn new( inner: &'a dyn AsyncBytesPartialDecoderTraits, byte_offset: ByteOffset, byte_length: ByteLength, ) -> Self
Create a new byte interval partial decoder.
Trait Implementations§
source§impl<'a> AsyncBytesPartialDecoderTraits for AsyncByteIntervalPartialDecoder<'a>
impl<'a> AsyncBytesPartialDecoderTraits for AsyncByteIntervalPartialDecoder<'a>
source§fn partial_decode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
byte_ranges: &'life1 [ByteRange],
options: &'life2 CodecOptions,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<RawBytes<'_>>>, 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,
byte_ranges: &'life1 [ByteRange],
options: &'life2 CodecOptions,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<RawBytes<'_>>>, 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<RawBytes<'_>>, 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<RawBytes<'_>>, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Partially decode bytes and concatenate. Read more
Auto Trait Implementations§
impl<'a> Freeze for AsyncByteIntervalPartialDecoder<'a>
impl<'a> !RefUnwindSafe for AsyncByteIntervalPartialDecoder<'a>
impl<'a> Send for AsyncByteIntervalPartialDecoder<'a>
impl<'a> Sync for AsyncByteIntervalPartialDecoder<'a>
impl<'a> Unpin for AsyncByteIntervalPartialDecoder<'a>
impl<'a> !UnwindSafe for AsyncByteIntervalPartialDecoder<'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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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