pub enum FindError {
Pe(Error),
Bad8Path,
NotFound,
NoRootPath,
UnDataEntry,
UnDirectory,
}Expand description
Find error.
Variants§
Pe(Error)
An error happened when reading the underlying resources.
This error indicates the resources are corrupt.
Bad8Path
The resources work with UTF-16 path names.
For this to work the given path must be valid unicode for the path comparison to make sense.
This error means the given path contained non-unicode parts.
NotFound
The requested data entry or directory doesn’t exist.
NoRootPath
Paths from the resources root must start with a / or \.
UnDataEntry
Encountered a data entry when expecting a directory.
This error means the given path contained a directory name which is actually a data entry.
UnDirectory
Encountered a directory when expecting a data entry.
Implementations§
Trait Implementations§
Source§impl Error for FindError
Available on crate feature std only.
impl Error for FindError
Available on crate feature
std only.Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
impl Copy for FindError
impl Eq for FindError
impl StructuralPartialEq for FindError
Auto Trait Implementations§
impl Freeze for FindError
impl RefUnwindSafe for FindError
impl Send for FindError
impl Sync for FindError
impl Unpin for FindError
impl UnwindSafe for FindError
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