pub enum Error<'a> {
NotProvidedPlatform,
NonExistsVersion(&'a str),
NonExistsPlatformVersion(&'a str),
VersionCheck((&'a str, String)),
GitHubApi((u16, String)),
ForcePath(String),
VarError(VarError),
Io(Error),
Ureq(Box<Error>),
Zip(ZipError),
}Expand description
Error returned if installation or initialization fail
Variants§
NotProvidedPlatform
Pre-built binary not provided for current platform
NonExistsVersion(&'a str)
Passed version not exists
NonExistsPlatformVersion(&'a str)
Pre-built binary not provided for current platform and passed version
VersionCheck((&'a str, String))
Pre-built binary version check fail, contain tuple with required version and version returned by binary calling with “–version” argument
GitHubApi((u16, String))
GitHub API response error
ForcePath(String)
VarError(VarError)
Read environment variable fail
Io(Error)
I/O operation error
Ureq(Box<Error>)
Ureq crate error
Zip(ZipError)
Zip crate error
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Error<'a>
impl<'a> !RefUnwindSafe for Error<'a>
impl<'a> Send for Error<'a>
impl<'a> Sync for Error<'a>
impl<'a> Unpin for Error<'a>
impl<'a> !UnwindSafe for Error<'a>
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