pub enum SvmError {
GlobalVersionNotSet,
UnknownVersion,
UnsupportedVersion(String, String),
VersionNotInstalled(String),
ChecksumMismatch {
version: String,
expected: String,
actual: String,
},
Timeout(String, u64),
CouldNotPatchForNixOs(String, String),
IoError(Error),
ReqwestError(Error),
SemverError(Error),
UrlError(ParseError),
UnsuccessfulResponse(Url, StatusCode),
}
Expand description
Error types from the svm_lib crate.
Variants§
GlobalVersionNotSet
UnknownVersion
UnsupportedVersion(String, String)
VersionNotInstalled(String)
ChecksumMismatch
Timeout(String, u64)
CouldNotPatchForNixOs(String, String)
IoError(Error)
ReqwestError(Error)
SemverError(Error)
UrlError(ParseError)
UnsuccessfulResponse(Url, StatusCode)
Trait Implementations§
source§impl Error for SvmError
impl Error for SvmError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParseError> for SvmError
impl From<ParseError> for SvmError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SvmError
impl !RefUnwindSafe for SvmError
impl Send for SvmError
impl Sync for SvmError
impl Unpin for SvmError
impl !UnwindSafe for SvmError
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