#[non_exhaustive]pub enum RenderError {
SessionClosed,
Input(InputError),
TailDuration,
SilenceThreshold,
SilenceHold,
LengthOverflow,
LatencyChanged {
before: u32,
after: u32,
},
LatencyNotApplied,
NonFiniteOutput {
frame: usize,
},
}Expand description
Errors from the offline render rules.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SessionClosed
The streaming render session has already finished, been cancelled or failed.
Input(InputError)
A shared processing or control input contract was violated, including input channels
that do not match the processor or do not all have the requested number of frames
(InputError::AudioBuffers) and render events
that are not valid, not in offset order or not before the end of the input
(InputError::Events). Events on ports the processor lacks fail its
Process::validate_events.
TailDuration
Maximum tail duration is not finite and non-negative.
SilenceThreshold
Silence threshold is not finite and non-negative.
SilenceHold
Silence hold duration is not finite and non-negative.
LengthOverflow
Render duration or sample storage exceeds the representable range.
LatencyChanged
The processor’s latency changed during a render.
LatencyNotApplied
A plugin announced a new latency before the render started, and the processor has not applied it yet.
NonFiniteOutput
The processor output a NaN or infinite sample, first at frame of the output after the
removed latency (for a session, of the push or finish call), whatever the tail policy.
Output from the start of the failing block on is not delivered.
Implementations§
Source§impl RenderError
impl RenderError
Sourcepub fn kind(&self) -> FailureKind
pub fn kind(&self) -> FailureKind
Classifies a render error without deriving a retry policy.
Trait Implementations§
Source§impl Clone for RenderError
impl Clone for RenderError
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
impl Eq for RenderError
Source§impl Error for RenderError
impl Error for RenderError
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()