pub enum DiscoveryError {
BaseDirNotFound,
LogFileMissing {
path: PathBuf,
},
UnsupportedPlatform,
}Expand description
Errors that can occur during log file discovery.
Variants§
BaseDirNotFound
The platform-specific base directory could not be determined.
On Windows this means KnownFolder::LocalAppDataLow failed to
resolve. On macOS this means the HOME environment variable is
not set.
LogFileMissing
The resolved log file path does not exist on disk.
Callers should notify the user (e.g., “MTG Arena not found”) and poll periodically until the file appears.
UnsupportedPlatform
The current operating system is not supported.
Only Windows, macOS, and Linux (Steam/Proton via libraryfolders.vdf,
Lutris fallback) are supported targets.
Trait Implementations§
Source§impl Clone for DiscoveryError
impl Clone for DiscoveryError
Source§fn clone(&self) -> DiscoveryError
fn clone(&self) -> DiscoveryError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiscoveryError
impl Debug for DiscoveryError
Source§impl Display for DiscoveryError
impl Display for DiscoveryError
impl Eq for DiscoveryError
Source§impl Error for DiscoveryError
impl Error for DiscoveryError
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()
Source§impl PartialEq for DiscoveryError
impl PartialEq for DiscoveryError
Source§fn eq(&self, other: &DiscoveryError) -> bool
fn eq(&self, other: &DiscoveryError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiscoveryError
Auto Trait Implementations§
impl Freeze for DiscoveryError
impl RefUnwindSafe for DiscoveryError
impl Send for DiscoveryError
impl Sync for DiscoveryError
impl Unpin for DiscoveryError
impl UnsafeUnpin for DiscoveryError
impl UnwindSafe for DiscoveryError
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