pub struct AsyncArrayToBytesPartialDecoderDefault { /* private fields */ }
Available on crate feature
async
only.Expand description
The default asynchronous array to bytes partial decoder. Decodes the entire chunk, and decodes the regions of interest.
Implementations§
Source§impl AsyncArrayToBytesPartialDecoderDefault
impl AsyncArrayToBytesPartialDecoderDefault
Sourcepub fn new(
input_handle: Arc<dyn AsyncBytesPartialDecoderTraits>,
decoded_representation: ChunkRepresentation,
codec: Arc<dyn ArrayToBytesCodecTraits>,
) -> Self
pub fn new( input_handle: Arc<dyn AsyncBytesPartialDecoderTraits>, decoded_representation: ChunkRepresentation, codec: Arc<dyn ArrayToBytesCodecTraits>, ) -> Self
Create a new AsyncArrayToBytesPartialDecoderDefault
.
Trait Implementations§
Source§impl AsyncArrayPartialDecoderTraits for AsyncArrayToBytesPartialDecoderDefault
impl AsyncArrayPartialDecoderTraits for AsyncArrayToBytesPartialDecoderDefault
Source§fn partial_decode<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
array_subsets: &'life1 [ArraySubset],
options: &'life2 CodecOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<ArrayBytes<'_>>, 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,
array_subsets: &'life1 [ArraySubset],
options: &'life2 CodecOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<ArrayBytes<'_>>, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Partially decode a chunk. Read more
Source§fn partial_decode_into<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
array_subset: &'life1 ArraySubset,
output_view: &'life2 mut ArrayBytesFixedDisjointView<'life3>,
options: &'life4 CodecOptions,
) -> Pin<Box<dyn Future<Output = Result<(), CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn partial_decode_into<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
array_subset: &'life1 ArraySubset,
output_view: &'life2 mut ArrayBytesFixedDisjointView<'life3>,
options: &'life4 CodecOptions,
) -> Pin<Box<dyn Future<Output = Result<(), CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Async variant of
ArrayPartialDecoderTraits::partial_decode_into
.Auto Trait Implementations§
impl Freeze for AsyncArrayToBytesPartialDecoderDefault
impl !RefUnwindSafe for AsyncArrayToBytesPartialDecoderDefault
impl Send for AsyncArrayToBytesPartialDecoderDefault
impl Sync for AsyncArrayToBytesPartialDecoderDefault
impl Unpin for AsyncArrayToBytesPartialDecoderDefault
impl !UnwindSafe for AsyncArrayToBytesPartialDecoderDefault
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