pub enum FilesystemProjectError {
EntryNotFound {
path: PathBuf,
source: Error,
},
EntryUnreadable {
path: PathBuf,
source: Error,
},
DefaultEntryNotFound {
path: PathBuf,
},
}Expand description
Failure while loading a filesystem-backed OPY project entry.
Variants§
Implementations§
Source§impl FilesystemProjectError
impl FilesystemProjectError
Sourcepub fn is_entry_not_found(&self) -> bool
pub fn is_entry_not_found(&self) -> bool
Whether the entry could not be resolved to a canonical filesystem path.
An EntryNotFound carrying a non-absent I/O cause — possible
through the public fields — reports the real category (#484). A path
through a regular file counts as absent (NotADirectory, #497).
Trait Implementations§
Source§impl Debug for FilesystemProjectError
impl Debug for FilesystemProjectError
Source§impl Display for FilesystemProjectError
impl Display for FilesystemProjectError
Source§impl Error for FilesystemProjectError
impl Error for FilesystemProjectError
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 !RefUnwindSafe for FilesystemProjectError
impl !UnwindSafe for FilesystemProjectError
impl Freeze for FilesystemProjectError
impl Send for FilesystemProjectError
impl Sync for FilesystemProjectError
impl Unpin for FilesystemProjectError
impl UnsafeUnpin for FilesystemProjectError
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