pub enum FactorioModApiError {
InvalidModDependency {
dep: String,
},
RequestError(Error),
VersionError(Error),
JsonParsingError(Error),
}
Expand description
Main error type used throughout factorio-mod-api
Variants
InvalidModDependency
Fields
dep: String
RequestError(Error)
Error that is raised if a request to the mod portal failed.
VersionError(Error)
Error that is raised if parsing of a SemVer version number failed.
JsonParsingError(Error)
Error that is raised if deserialization from JSON failed.
Trait Implementations
sourceimpl Debug for FactorioModApiError
impl Debug for FactorioModApiError
sourceimpl Display for FactorioModApiError
impl Display for FactorioModApiError
sourceimpl Error for FactorioModApiError
impl Error for FactorioModApiError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<Error> for FactorioModApiError
impl From<Error> for FactorioModApiError
sourceimpl From<Error> for FactorioModApiError
impl From<Error> for FactorioModApiError
Auto Trait Implementations
impl !RefUnwindSafe for FactorioModApiError
impl Send for FactorioModApiError
impl Sync for FactorioModApiError
impl Unpin for FactorioModApiError
impl !UnwindSafe for FactorioModApiError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more