pub enum AccessError {
Path(String),
Link(String),
Unexpected(String),
TooLarge(String),
Locked,
Io(String, Error),
}Expand description
Why a path beneath the root could not be used.
Variants§
Path(String)
The path has an empty, . or .. component, or a component with
\, : or NUL; or a name has a /.
Link(String)
A symbolic link at this prefix of the path.
Unexpected(String)
The entry is not a regular file or directory, as the access needs.
TooLarge(String)
The file is larger than the limit of the read.
Locked
Another holder has the root’s lock.
Io(String, Error)
Implementations§
Source§impl AccessError
impl AccessError
Sourcepub fn removal_pending(&self) -> bool
pub fn removal_pending(&self) -> bool
Whether this is a removal that took effect but is not finished: on Windows a removed entry stays, on some file systems, until another program closes it, and goes then.
Trait Implementations§
Source§impl Debug for AccessError
impl Debug for AccessError
Source§impl Display for AccessError
impl Display for AccessError
Source§impl Error for AccessError
impl Error for AccessError
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 !RefUnwindSafe for AccessError
impl !UnwindSafe for AccessError
impl Freeze for AccessError
impl Send for AccessError
impl Sync for AccessError
impl Unpin for AccessError
impl UnsafeUnpin for AccessError
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