pub enum TranscodeStatus {
Complete,
NeedInput {
input_index: usize,
required: usize,
available: usize,
},
NeedOutput {
output_index: usize,
required: usize,
available: usize,
},
}Expand description
Reports why a crate::Transcoder stopped converting input.
Variants§
Complete
All currently supplied input was consumed.
NeedInput
More input is needed to complete the next output value.
If the caller has reached EOF, it should call crate::Transcoder::finish
so the transcoder can finalize or reject the incomplete stream state.
input_index: Absolute input index where input ended while decoding.required: Number of additional input units required to continue.available: Number of input units currently available from the current input position.
Fields
NeedOutput
More output capacity is needed before conversion can continue.
output_index: Absolute output index where output ended while decoding.required: Number of additional output units required to continue.available: Number of output units currently available from the current output position.
Trait Implementations§
Source§impl Clone for TranscodeStatus
impl Clone for TranscodeStatus
Source§fn clone(&self) -> TranscodeStatus
fn clone(&self) -> TranscodeStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TranscodeStatus
impl Debug for TranscodeStatus
Source§impl PartialEq for TranscodeStatus
impl PartialEq for TranscodeStatus
Source§fn eq(&self, other: &TranscodeStatus) -> bool
fn eq(&self, other: &TranscodeStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TranscodeStatus
impl Eq for TranscodeStatus
impl StructuralPartialEq for TranscodeStatus
Auto Trait Implementations§
impl Freeze for TranscodeStatus
impl RefUnwindSafe for TranscodeStatus
impl Send for TranscodeStatus
impl Sync for TranscodeStatus
impl Unpin for TranscodeStatus
impl UnsafeUnpin for TranscodeStatus
impl UnwindSafe for TranscodeStatus
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