pub enum Flush {
Auto,
Flush,
NoFlush,
}Expand description
How the decoder should handle flushing.
The behavior of flushing is somewhat unclear upstream. If you run into decoder errors,
you should probably disable automatic flushing, and manually call Decoder::flush_remaining
after all NAL units have been processed. It might be a good idea to do the latter regardless.
If you have more info on flushing best practices, we’d greatly appreciate a PR to make our decoding pipeline more robust.
Variants§
Auto
Uses the current currently configured decoder default (which is attempted flushing after each decode).
Flush
Flushes after each decode operation.
NoFlush
Do not flush after decode operations.
Trait Implementations§
impl Copy for Flush
impl Eq for Flush
impl StructuralPartialEq for Flush
Auto Trait Implementations§
impl Freeze for Flush
impl RefUnwindSafe for Flush
impl Send for Flush
impl Sync for Flush
impl Unpin for Flush
impl UnsafeUnpin for Flush
impl UnwindSafe for Flush
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