pub enum EngineError {
Show 22 variants
Cuda(DriverError),
NvrtcCompile(CompileError),
Inference(Error),
ModelMetadata(String),
NotInitialized,
Decode(String),
Encode(String),
Demux(String),
Mux(String),
BitstreamFilter(String),
Probe(String),
Pipeline(String),
ChannelClosed,
Shutdown,
FormatMismatch {
expected: PixelFormat,
actual: PixelFormat,
},
DimensionMismatch(String),
BufferTooSmall {
need: usize,
have: usize,
},
InvariantViolation(String),
PanicRecovered {
stage: &'static str,
message: String,
},
VramLimitExceeded {
limit_bytes: usize,
current_bytes: usize,
requested_bytes: usize,
would_be_bytes: usize,
},
BackpressureTimeout {
stage: &'static str,
elapsed_ms: u64,
},
DropOrderViolation(String),
}Expand description
All errors originating from the RAVE engine.
Variants§
Cuda(DriverError)
NvrtcCompile(CompileError)
Inference(Error)
ModelMetadata(String)
NotInitialized
Decode(String)
Encode(String)
Demux(String)
Mux(String)
BitstreamFilter(String)
Probe(String)
Pipeline(String)
ChannelClosed
Shutdown
FormatMismatch
DimensionMismatch(String)
BufferTooSmall
InvariantViolation(String)
PanicRecovered
VramLimitExceeded
BackpressureTimeout
DropOrderViolation(String)
Implementations§
Source§impl EngineError
impl EngineError
Sourcepub fn error_code(&self) -> u32
pub fn error_code(&self) -> u32
Stable integer error code for structured telemetry.
Codes are grouped by category:
- 1xx: CUDA/driver
- 2xx: Inference
- 3xx: Codecs
- 4xx: Pipeline
- 5xx: Type contracts
- 6xx: Audit/invariant
- 7xx: Production hardening
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Whether this error is recoverable (pipeline can continue after logging).
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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<CompileError> for EngineError
impl From<CompileError> for EngineError
Source§fn from(source: CompileError) -> Self
fn from(source: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<DriverError> for EngineError
impl From<DriverError> for EngineError
Source§fn from(source: DriverError) -> Self
fn from(source: DriverError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl UnwindSafe for EngineError
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