#[non_exhaustive]pub enum Error {
NotFound(String),
InvalidPath(PathBuf),
EnvVar(VarError),
UnsupportedPlatform,
Io(Error),
UnsupportedMcpConfig {
harness: String,
reason: String,
},
BinaryDetection(String),
UnsupportedScope {
harness: String,
scope: String,
},
YamlParse(Error),
MissingField(String),
MissingEnvVar {
name: String,
},
}Expand description
Errors that can occur during harness 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.
NotFound(String)
The requested harness was not found on this system.
InvalidPath(PathBuf)
The path is invalid or inaccessible.
EnvVar(VarError)
An environment variable could not be read.
UnsupportedPlatform
The current platform is not supported.
Io(Error)
An I/O error occurred.
UnsupportedMcpConfig
MCP server uses unsupported features for target harness.
Fields
BinaryDetection(String)
Binary detection failed due to system error.
UnsupportedScope
The requested scope is not supported by this harness.
YamlParse(Error)
YAML parsing failed.
MissingField(String)
A required field is missing from the input.
MissingEnvVar
An environment variable referenced by EnvValue is not set.
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 !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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more