#[non_exhaustive]pub enum EncodeError {
Cancelled,
InvalidTimestamp,
Adapter(String),
Output(String),
OutputInUse(String),
Gpu {
fault: GpuFault,
message: String,
},
}Expand description
Typed encoding failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Cancelled
The operation was cancelled; partial output must be removed by policy.
InvalidTimestamp
Input timestamps violated monotonic/interleave requirements.
Adapter(String)
Adapter failure without leaking a platform error type.
Output(String)
The output file could not be created or claimed: it already exists, its path is unusable, or the file system refused. Nothing was encoded.
OutputInUse(String)
Another export, live in this process or another, is writing the same output: it holds the output’s partial file. Nothing was encoded, and the other export’s file is untouched.
Gpu
A GPU call the adapter made failed, and its platform status says what
that was evidence of. message names the call and the status.
Implementations§
Source§impl EncodeError
impl EncodeError
Sourcepub fn gpu_timeout(what: impl Display) -> Self
pub fn gpu_timeout(what: impl Display) -> Self
A wait on GPU work an encode needs, for what, that timed out: a
GpuFault::Timeout whose message carries GPU_TIMEOUT_MESSAGE.
Trait Implementations§
Source§impl Clone for EncodeError
impl Clone for EncodeError
Source§impl Debug for EncodeError
impl Debug for EncodeError
Source§impl Display for EncodeError
impl Display for EncodeError
impl Eq for EncodeError
Source§impl Error for EncodeError
impl Error for EncodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()