#[non_exhaustive]pub enum EncodeError {
Cancelled,
InvalidTimestamp,
Adapter(String),
Output(String),
OutputInUse(String),
Publish {
message: String,
kept: Option<PathBuf>,
},
EncoderRejected {
encoder: String,
frame: u64,
message: String,
},
Gpu {
fault: GpuFault,
message: String,
},
EncodersRefused {
message: String,
refusals: Vec<EncoderRefusal>,
},
}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. Nothing was encoded.
OutputInUse(String)
Another live export, in any process, holds the output’s partial file. Nothing was encoded.
Publish
The output was encoded but could not be moved to its final path. The finished file is kept beside the target under another name.
Fields
EncoderRejected
The encoder refused an input frame on a still-usable device; another path may succeed.
Fields
Gpu
A GPU call failed; message names the call and its platform status.
Fields
EncodersRefused
No encoder candidate opened. Each refusal’s kind tells whether retrying can help.
Fields
refusals: Vec<EncoderRefusal>The refusals themselves, most preferred candidate first.
Implementations§
Source§impl EncodeError
impl EncodeError
Sourcepub fn gpu_timeout(what: impl Display) -> Self
pub fn gpu_timeout(what: impl Display) -> Self
A timed-out GPU wait for what, carrying 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()