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.
Progress(TranscodeProgress)
The decoder consumed input or initialized output without another await.
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 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