#[non_exhaustive]pub enum Error {
Show 19 variants
Io(Error),
Json(Error),
Driver(Error),
Origin(OriginError),
HttpRequest(HttpRequestError),
Infra(Error),
Shared(Error),
Storage(Error),
Incompatible {
id: String,
reason: String,
},
VersionRequired {
id: String,
},
UnsafeManagedPath {
path: PathBuf,
},
PatchModeUnsupported {
id: String,
requested: PatchMode,
supported: String,
},
PatchModeDisallowedByInstance {
id: String,
instance_policy: PatchMode,
},
AddonNotInstalled {
id: String,
},
UnknownAddonInOrder {
id: String,
},
LiteLoaderMinecraftVersionNotFound {
game_version: String,
},
LiteLoaderLoaderVersionNotFound {
loader_version: String,
game_version: String,
},
LiteLoaderLibraryRepositoryMissing {
library: String,
},
LiteLoaderSnapshotRepositoryMissing {
library: String,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
Json(Error)
Driver(Error)
Origin(OriginError)
HttpRequest(HttpRequestError)
Infra(Error)
Storage(Error)
Incompatible
VersionRequired
UnsafeManagedPath
PatchModeUnsupported
PatchModeDisallowedByInstance
AddonNotInstalled
UnknownAddonInOrder
LiteLoaderMinecraftVersionNotFound
LiteLoaderLoaderVersionNotFound
LiteLoaderLibraryRepositoryMissing
LiteLoaderSnapshotRepositoryMissing
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<HttpRequestError> for Error
impl From<HttpRequestError> for Error
Source§fn from(source: HttpRequestError) -> Self
fn from(source: HttpRequestError) -> Self
Converts to this type from the input type.
Source§impl From<OriginError> for Error
impl From<OriginError> for Error
Source§fn from(source: OriginError) -> Self
fn from(source: OriginError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Errorwhere
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const Inner is !null: Freeze,
PhantomData<Inner>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<u16>: Freeze,
&'static str: Freeze,
String: Freeze,
*const dyn Any + Send is !null: Freeze,
PhantomData<dyn Any + Send>: Freeze,
NonZero<u64>: Freeze,
*const dyn Error + Send + Sync is !null: Freeze,
PhantomData<dyn Error + Send + Sync>: Freeze,
PhantomData<DownloadFailure>: Freeze,
PhantomData<TaskId>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
*const ProcessorFailure is !null: Freeze,
PhantomData<ProcessorFailure>: Freeze,
PhantomData<String>: Freeze,
impl Move for Error
impl Send for Errorwhere
Repr: Send,
BoxRaw<ErrorImpl>: Send,
BoxRaw<Inner>: Send,
RawVecInner: Send,
NonZero<u16>: Send,
&'static str: Send,
String: Send,
SyncWrapper<Box<dyn Any + Send>>: Send,
NonZero<u64>: Send,
BoxRaw<dyn Error + Send + Sync>: Send,
BoxRaw<Error>: Send,
BoxRaw<Error>: Send,
BoxRaw<ProcessorFailure>: Send,
impl Sync for Error
impl Unpin for Errorwhere
*const () is !null: Unpin,
&'static SimpleMessage: Unpin,
*const Custom is !null: Unpin,
Box<ErrorImpl>: Unpin,
Box<Inner>: Unpin,
*const u8 is !null: Unpin,
NonZero<u16>: Unpin,
&'static str: Unpin,
String: Unpin,
Box<dyn Any + Send>: Unpin,
NonZero<u64>: Unpin,
Box<dyn Error + Send + Sync>: Unpin,
Box<Error>: Unpin,
Box<Error>: Unpin,
Box<ProcessorFailure>: Unpin,
impl UnsafeUnpin for Errorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const Inner is !null: UnsafeUnpin,
PhantomData<Inner>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroU16Inner: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const dyn Any + Send is !null: UnsafeUnpin,
PhantomData<dyn Any + Send>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
*const dyn Error + Send + Sync is !null: UnsafeUnpin,
PhantomData<dyn Error + Send + Sync>: UnsafeUnpin,
PhantomData<DownloadFailure>: UnsafeUnpin,
PhantomData<TaskId>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
*const ProcessorFailure is !null: UnsafeUnpin,
PhantomData<ProcessorFailure>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
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