pub enum ConfinedWriteError {
InvalidPath(PathBuf),
Symlink(PathBuf),
NotADirectory(PathBuf),
NotAFile(PathBuf),
Io(PathBuf, Error),
}Expand description
Why a confined write was refused or failed.
Variants§
InvalidPath(PathBuf)
The relative path is empty, absolute, or holds .., . or a prefix.
Symlink(PathBuf)
A component below the root is a symlink (or reparse point).
NotADirectory(PathBuf)
A directory component exists but is not a directory.
NotAFile(PathBuf)
The destination exists but is not a regular file.
Io(PathBuf, Error)
Trait Implementations§
Source§impl Debug for ConfinedWriteError
impl Debug for ConfinedWriteError
Source§impl Display for ConfinedWriteError
impl Display for ConfinedWriteError
Source§impl Error for ConfinedWriteError
impl Error for ConfinedWriteError
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 ConfinedWriteError
impl !UnwindSafe for ConfinedWriteError
impl Forget for ConfinedWriteError
impl Freeze for ConfinedWriteError
impl Move for ConfinedWriteError
impl Send for ConfinedWriteError
impl Sync for ConfinedWriteError
impl Unpin for ConfinedWriteError
impl UnsafeUnpin for ConfinedWriteError
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