Enum protoc_prebuilt::Error
source · pub enum Error<'a> {
NotProvidedPlatform,
NonExistsVersion(&'a str),
NonExistsPlatformVersion(&'a str),
GitHubApi((u16, 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
GitHubApi((u16, String))
GitHub API response error
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> !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