#[non_exhaustive]pub enum ErrorSeverity {
Fatal,
Recoverable,
Other,
}Expand description
Severity class of a media error: whether the failing operation can be retried without rebuilding the component that raised it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fatal
The component cannot continue; it must be discarded or reconfigured (e.g. a missing file, an unsupported codec, an I/O failure).
Recoverable
Transient: the failing operation can be retried, or the stream reconnected, without rebuilding (e.g. a corrupt frame, a network timeout).
Other
Neither strictly fatal nor retryable: a one-off condition the caller can
handle in context (e.g. a raw FFmpeg error, no frame at a timestamp).
Trait Implementations§
Source§impl Clone for ErrorSeverity
impl Clone for ErrorSeverity
Source§fn clone(&self) -> ErrorSeverity
fn clone(&self) -> ErrorSeverity
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 moreimpl Copy for ErrorSeverity
Source§impl Debug for ErrorSeverity
impl Debug for ErrorSeverity
impl Eq for ErrorSeverity
Source§impl PartialEq for ErrorSeverity
impl PartialEq for ErrorSeverity
impl StructuralPartialEq for ErrorSeverity
Auto Trait Implementations§
impl Freeze for ErrorSeverity
impl RefUnwindSafe for ErrorSeverity
impl Send for ErrorSeverity
impl Sync for ErrorSeverity
impl Unpin for ErrorSeverity
impl UnsafeUnpin for ErrorSeverity
impl UnwindSafe for ErrorSeverity
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