pub enum LauncherError {
UnsupportedPlatform(String),
SkipDownload(String),
ChecksumMismatch {
expected: String,
actual: String,
},
ChecksumMissing(String),
Io(Error),
Http(String),
NotFound(String),
NoBundle(String),
ExtractionFailed(String),
LauncherMissing(String),
InvalidVersion(String),
}Expand description
Errors specific to the binary launcher.
Variants§
UnsupportedPlatform(String)
The current OS or architecture is not supported.
SkipDownload(String)
Download was skipped (MOCKSERVER_SKIP_BINARY_DOWNLOAD is set) but no cached binary exists.
ChecksumMismatch
SHA-256 checksum verification failed.
ChecksumMissing(String)
The checksum file was empty or unparseable.
Io(Error)
An I/O error (download, filesystem, process spawn).
Http(String)
An HTTP transport error.
NotFound(String)
The server responded with HTTP 404 — no asset was published at the URL.
NoBundle(String)
No downloadable release bundle exists for the requested version.
ExtractionFailed(String)
The extraction command (tar) failed.
LauncherMissing(String)
The launcher binary was missing or empty after extraction.
InvalidVersion(String)
The version string is invalid or contains path traversal.
Trait Implementations§
Source§impl Debug for LauncherError
impl Debug for LauncherError
Source§impl Display for LauncherError
impl Display for LauncherError
Source§impl Error for LauncherError
impl Error for LauncherError
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 !RefUnwindSafe for LauncherError
impl !UnwindSafe for LauncherError
impl Freeze for LauncherError
impl Send for LauncherError
impl Sync for LauncherError
impl Unpin for LauncherError
impl UnsafeUnpin for LauncherError
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