pub enum DenoiserError {
QueueFull,
Poisoned,
NoAcceleratorAvailable,
Other(Error),
}Expand description
Errors reported by the high-level Denoiser.
Variants§
QueueFull
An earlier denoised frame has not been collected yet, so pushing again would overwrite it in the double-buffered output slot.
Call Denoiser::recv_frame or Denoiser::try_recv_frame,
then retry the same push_frame call.
Poisoned
An earlier call failed, so how many frames are in flight is no longer known and later output would not line up with its input.
Call Denoiser::reset_stream to start a fresh stream, or drop
the denoiser. Either one settles a frame that
Denoiser::try_recv_frame has already polled, so it can block
for that readback’s remaining latency.
NoAcceleratorAvailable
None of the accelerators in the priority list could be started.
Other(Error)
Anything else, wrapping the internal anyhow errors raised by
kernel dispatch and readback.
Trait Implementations§
Source§impl Debug for DenoiserError
impl Debug for DenoiserError
Source§impl Display for DenoiserError
impl Display for DenoiserError
Source§impl Error for DenoiserError
impl Error for DenoiserError
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()