pub enum FileError {
Denied,
Outside(Vec<PathBuf>),
Io(String),
}Variants§
Denied
No read capability at all.
Outside(Vec<PathBuf>)
The capability was granted, but the path resolves outside every allowed
root. Kept separate from Denied because the remedy differs: the caller
already passed –allow-read, and telling them to pass it again is the
least useful thing a diagnostic can do. Carries the roots so the message
can name them.
Io(String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileError
impl RefUnwindSafe for FileError
impl Send for FileError
impl Sync for FileError
impl Unpin for FileError
impl UnsafeUnpin for FileError
impl UnwindSafe for FileError
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