#[non_exhaustive]pub enum Error {
Malformed(Error),
UnsupportedVersion(String),
ModelKindMismatch,
NoSuchIndex(String),
Payload(String),
Core(Error),
Multiconductor(Error),
Serialize(Error),
}Expand description
A .pio.json failure.
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.
Malformed(Error)
The document is not well formed JSON, or does not have the shape the document requires.
UnsupportedVersion(String)
The document comes from a powerio lineage this build does not read.
ModelKindMismatch
The document’s model_kind disagrees with the payload it carries.
NoSuchIndex(String)
An operating point or study index that the document does not contain.
Payload(String)
The payload could not be built, applied, or serialized.
Core(Error)
A failure from the balanced model, its readers, or its writers.
Multiconductor(Error)
A failure from the multiconductor model.
Serialize(Error)
Serializing the package to JSON failed.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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