pub enum SystemAnalysisError {
AnalysisError {
message: String,
},
SystemInfoError {
source: Box<dyn Error + Send + Sync>,
},
CompatibilityError {
message: String,
},
InvalidWorkload {
message: String,
},
ResourceNotFound {
resource_type: String,
},
ConfigError {
message: String,
},
IoError(Error),
SerializationError(Error),
}Expand description
The main error type for the system analysis crate.
Variants§
AnalysisError
Error occurred while analyzing system hardware
SystemInfoError
Error occurred while accessing system information
CompatibilityError
Error occurred while calculating compatibility
InvalidWorkload
Invalid workload requirements
ResourceNotFound
Resource requirement not found
ConfigError
Configuration error
IoError(Error)
I/O error
SerializationError(Error)
Serialization error
Implementations§
Source§impl SystemAnalysisError
impl SystemAnalysisError
Sourcepub fn system_info(message: impl Into<String>) -> Self
pub fn system_info(message: impl Into<String>) -> Self
Create a new system info error
Sourcepub fn compatibility(message: impl Into<String>) -> Self
pub fn compatibility(message: impl Into<String>) -> Self
Create a new compatibility error
Sourcepub fn invalid_workload(message: impl Into<String>) -> Self
pub fn invalid_workload(message: impl Into<String>) -> Self
Create a new invalid workload error
Sourcepub fn resource_not_found(resource_type: impl Into<String>) -> Self
pub fn resource_not_found(resource_type: impl Into<String>) -> Self
Create a new resource not found error
Trait Implementations§
Source§impl Debug for SystemAnalysisError
impl Debug for SystemAnalysisError
Source§impl Display for SystemAnalysisError
impl Display for SystemAnalysisError
Source§impl Error for SystemAnalysisError
impl Error for SystemAnalysisError
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 SystemAnalysisError
impl From<Error> for SystemAnalysisError
Auto Trait Implementations§
impl Freeze for SystemAnalysisError
impl !RefUnwindSafe for SystemAnalysisError
impl Send for SystemAnalysisError
impl Sync for SystemAnalysisError
impl Unpin for SystemAnalysisError
impl !UnwindSafe for SystemAnalysisError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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