pub enum Error {
Io(Error),
Json(Error),
Utf8(FromPathBufError),
SteamLocate(Error),
SteamAppNotFound,
SteamExecutableNotFound,
XboxStoreQueryFailed {
status: ExitStatus,
},
XboxNonUtf8 {
source: FromUtf8Error,
},
EpicGameNotFound,
NoGamePathOverride,
}Expand description
Errors that can occur during platform and game detection.
Variants§
Io(Error)
An underlying I/O error.
Json(Error)
An error parsing or serialising JSON (e.g. Epic Games manifest).
Utf8(FromPathBufError)
A path could not be converted to valid UTF-8.
SteamLocate(Error)
An error from the steamlocate library.
SteamAppNotFound
The requested app ID was not found in any Steam library.
SteamExecutableNotFound
The Steam executable could not be located.
XboxStoreQueryFailed
A PowerShell query for Xbox Store games failed with a non-zero exit status.
Fields
§
status: ExitStatusXboxNonUtf8
A PowerShell query for Xbox Store games returned non-UTF-8 output.
Fields
§
source: FromUtf8ErrorEpicGameNotFound
The game was not found in the Epic Games Launcher installations.
NoGamePathOverride
The game path could not be determined and no override was provided.
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<FromPathBufError> for Error
impl From<FromPathBufError> for Error
Source§fn from(source: FromPathBufError) -> Self
fn from(source: FromPathBufError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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