pub enum FileSystemError {
GameInfoNotFound(PathBuf),
InvalidGamePath(PathBuf),
GameInfoParseError,
}Expand description
Errors that can occur when loading or using the FileSystem.
Variants§
GameInfoNotFound(PathBuf)
The gameinfo.txt file was not found in the specified path.
InvalidGamePath(PathBuf)
The provided game path is invalid (e.g., it has no parent or file name).
GameInfoParseError
The gameinfo.txt file could not be parsed.
Trait Implementations§
Source§impl Debug for FileSystemError
impl Debug for FileSystemError
Source§impl Display for FileSystemError
impl Display for FileSystemError
Source§impl Error for FileSystemError
impl Error for FileSystemError
1.30.0 · 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 Freeze for FileSystemError
impl RefUnwindSafe for FileSystemError
impl Send for FileSystemError
impl Sync for FileSystemError
impl Unpin for FileSystemError
impl UnsafeUnpin for FileSystemError
impl UnwindSafe for FileSystemError
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