pub enum CapabilityError {
Io {
path: PathBuf,
source: Error,
},
Symlink {
path: PathBuf,
},
NotRegularFile {
path: PathBuf,
},
NotDirectory {
path: PathBuf,
},
OutsideRoot {
path: PathBuf,
root: PathBuf,
},
InvalidRelativePath {
path: PathBuf,
},
TooLarge {
path: PathBuf,
limit: usize,
},
InvalidUtf8 {
path: PathBuf,
},
}Expand description
Error returned while performing capability-scoped filesystem access.
Variants§
Io
A filesystem operation failed.
Symlink
A symbolic link or reparse point was encountered.
NotRegularFile
The target is not a regular file.
NotDirectory
The target is not a directory.
OutsideRoot
A relative path escapes the authorized root.
InvalidRelativePath
A relative path is malformed.
TooLarge
A file exceeds the configured byte limit.
InvalidUtf8
File contents are not valid UTF-8.
Trait Implementations§
Source§impl Debug for CapabilityError
impl Debug for CapabilityError
Source§impl Display for CapabilityError
impl Display for CapabilityError
Source§impl Error for CapabilityError
impl Error for CapabilityError
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 CapabilityError
impl !UnwindSafe for CapabilityError
impl Freeze for CapabilityError
impl Send for CapabilityError
impl Sync for CapabilityError
impl Unpin for CapabilityError
impl UnsafeUnpin for CapabilityError
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