#[non_exhaustive]pub enum ContainerError {
Mp4(Error),
Webm(Error),
}Expand description
Any container’s mux failure, as one type.
Exists so a layer generic over MuxOpen can report failures without a generic error
parameter of its own — mediaway’s PipelineError::Mux wraps this, so adding a
container does not change PipelineError’s shape.
Closed by design. A third-party MuxOpen implementation cannot convert into this,
so it cannot be used with a layer that requires Error: Into<ContainerError>. The
alternative — Box<dyn Error> — would make every mux failure untypeable by the caller,
and this crate owns every container mediaway ships. #[non_exhaustive] keeps adding one
non-breaking.
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.
Trait Implementations§
Source§impl Debug for ContainerError
impl Debug for ContainerError
Source§impl Display for ContainerError
impl Display for ContainerError
Source§impl Error for ContainerError
impl Error for ContainerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for ContainerError
impl From<Error> for ContainerError
Auto Trait Implementations§
impl Freeze for ContainerError
impl RefUnwindSafe for ContainerError
impl Send for ContainerError
impl Sync for ContainerError
impl Unpin for ContainerError
impl UnsafeUnpin for ContainerError
impl UnwindSafe for ContainerError
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