#[non_exhaustive]pub enum UnitProcessorError {
EmptyInput {
unit: UnitId,
cycle_index: u64,
},
InvalidOutput {
unit: UnitId,
reason: String,
},
ProcessorError {
unit: UnitId,
reason: String,
},
}Expand description
Errors produced by unit processor operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyInput
The processor received an empty Quad during an active cycle.
Fields
InvalidOutput
The processor’s output Quad failed validation.
Fields
ProcessorError
A processor-internal error (implementation-specific).
Trait Implementations§
Source§impl Clone for UnitProcessorError
impl Clone for UnitProcessorError
Source§fn clone(&self) -> UnitProcessorError
fn clone(&self) -> UnitProcessorError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnitProcessorError
impl Debug for UnitProcessorError
Source§impl Display for UnitProcessorError
impl Display for UnitProcessorError
Source§impl Error for UnitProcessorError
impl Error for UnitProcessorError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for UnitProcessorError
impl RefUnwindSafe for UnitProcessorError
impl Send for UnitProcessorError
impl Sync for UnitProcessorError
impl Unpin for UnitProcessorError
impl UnsafeUnpin for UnitProcessorError
impl UnwindSafe for UnitProcessorError
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