#[non_exhaustive]pub enum MetadataCommandError {
NotFound {
stdout: String,
},
Io(Error),
Json(Error),
ScarbError {
stdout: String,
stderr: String,
},
}Expand description
Error thrown while trying to read scarb metadata.
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.
NotFound
scarb metadata command did not produce any metadata
Io(Error)
Failed to read scarb metadata output.
Json(Error)
Failed to deserialize scarb metadata output.
ScarbError
Error during execution of scarb metadata.
Implementations§
Source§impl MetadataCommandError
impl MetadataCommandError
Sourcepub const fn did_not_found(&self) -> bool
pub const fn did_not_found(&self) -> bool
Check if this is MetadataCommandError::NotFound.
Trait Implementations§
Source§impl Debug for MetadataCommandError
impl Debug for MetadataCommandError
Source§impl Display for MetadataCommandError
impl Display for MetadataCommandError
Source§impl Error for MetadataCommandError
impl Error for MetadataCommandError
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<Error> for MetadataCommandError
impl From<Error> for MetadataCommandError
Auto Trait Implementations§
impl Freeze for MetadataCommandError
impl !RefUnwindSafe for MetadataCommandError
impl Send for MetadataCommandError
impl Sync for MetadataCommandError
impl Unpin for MetadataCommandError
impl !UnwindSafe for MetadataCommandError
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