pub enum AsyncTranscodeDecodeStep {
EndOfInput,
Progress(TranscodeProgress),
}Expand description
Result of one cancellation-safe asynchronous decode operation.
§Examples
use qubit_codec::AsyncTranscodeDecodeStep;
let step = AsyncTranscodeDecodeStep::EndOfInput;
assert!(matches!(step, AsyncTranscodeDecodeStep::EndOfInput));Variants§
EndOfInput
The wrapped input reached EOF with no unread units. Call
crate::AsyncTranscodeDecodeInput::transcode_eof_step to dispatch
that EOF event to the decoder.
Progress(TranscodeProgress)
The result of one decode step, returned without another await.
Both read() and written() may be zero. Inspect the stop status to
decide whether to refill input, provide output capacity, or handle EOF.
Tuple Fields
§
0: TranscodeProgressConsumed and written counts and the decoder stop status.
Trait Implementations§
Source§impl Clone for AsyncTranscodeDecodeStep
impl Clone for AsyncTranscodeDecodeStep
impl Copy for AsyncTranscodeDecodeStep
Source§impl Debug for AsyncTranscodeDecodeStep
impl Debug for AsyncTranscodeDecodeStep
impl Eq for AsyncTranscodeDecodeStep
Source§impl PartialEq for AsyncTranscodeDecodeStep
impl PartialEq for AsyncTranscodeDecodeStep
impl StructuralPartialEq for AsyncTranscodeDecodeStep
Auto Trait Implementations§
impl Forget for AsyncTranscodeDecodeStep
impl Freeze for AsyncTranscodeDecodeStep
impl RefUnwindSafe for AsyncTranscodeDecodeStep
impl Send for AsyncTranscodeDecodeStep
impl Sync for AsyncTranscodeDecodeStep
impl Unpin for AsyncTranscodeDecodeStep
impl UnsafeUnpin for AsyncTranscodeDecodeStep
impl UnwindSafe for AsyncTranscodeDecodeStep
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