pub enum ContainerError {
Unknown(String),
UnknownExtension(Option<String>),
ExtensionMismatch {
container: Container,
extension: String,
},
VideoCodecNotOffered {
container: Container,
codec: VideoCodec,
},
AudioCodecNotOffered {
container: Container,
codec: AudioCodec,
},
}Expand description
Why a container request cannot be resolved.
Variants§
Unknown(String)
A container name outside Container::ALL.
UnknownExtension(Option<String>)
No container was named and the output’s extension names none; None
when the output has no extension.
ExtensionMismatch
The output’s extension is not one of the named container’s.
Fields
VideoCodecNotOffered
The container does not offer the requested video codec.
AudioCodecNotOffered
The container does not offer the requested audio codec.
Trait Implementations§
Source§impl Clone for ContainerError
impl Clone for ContainerError
Source§impl Debug for ContainerError
impl Debug for ContainerError
Source§impl Display for ContainerError
impl Display for ContainerError
impl Eq for ContainerError
Source§impl Error for ContainerError
impl Error for ContainerError
1.30.0 · 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 PartialEq for ContainerError
impl PartialEq for ContainerError
impl StructuralPartialEq 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