pub struct PartialDecoderCapability {
pub partial_read: bool,
pub partial_decode: bool,
}Expand description
Describes the partial decoding capabilities of a codec.
The capability describes:
partial_read: Whether the codec can perform partial reading from its input.partial_decode: Whether the codec supports partial decoding decoding, or it must decode the entire input.
If partial_read is false and partial_decode is true, input should be cached for optimal performance.
If partial_decode is false, a cache should be inserted after this codec in a codec chain partial decoder.
Fields§
§partial_read: boolWhether the codec can perform partial reading from its input. If false, the codec needs to read all input data before decoding.
partial_decode: boolWhether the codec supports partial decoding operations. If false, the codec needs to decode the entire input.
Trait Implementations§
Source§impl Clone for PartialDecoderCapability
impl Clone for PartialDecoderCapability
Source§fn clone(&self) -> PartialDecoderCapability
fn clone(&self) -> PartialDecoderCapability
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartialDecoderCapability
impl Debug for PartialDecoderCapability
Source§impl PartialEq for PartialDecoderCapability
impl PartialEq for PartialDecoderCapability
impl Copy for PartialDecoderCapability
impl Eq for PartialDecoderCapability
impl StructuralPartialEq for PartialDecoderCapability
Auto Trait Implementations§
impl Freeze for PartialDecoderCapability
impl Send for PartialDecoderCapability
impl Sync for PartialDecoderCapability
impl RefUnwindSafe for PartialDecoderCapability
impl Unpin for PartialDecoderCapability
impl UnsafeUnpin for PartialDecoderCapability
impl UnwindSafe for PartialDecoderCapability
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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