pub enum FsError {
Malformed(&'static str),
Escapes,
NotFound,
}Expand description
Why a path was refused.
Deliberately coarse. Distinguishing “outside the root and exists” from “outside the root and does not exist” would make the API an oracle for the filesystem beyond the jail.
Variants§
Malformed(&'static str)
The path is not of an acceptable shape (400).
Escapes
The path resolves outside the root (403).
NotFound
The path is inside the root but does not exist (404).
Trait Implementations§
impl Eq for FsError
impl StructuralPartialEq for FsError
Auto Trait Implementations§
impl Freeze for FsError
impl RefUnwindSafe for FsError
impl Send for FsError
impl Sync for FsError
impl Unpin for FsError
impl UnsafeUnpin for FsError
impl UnwindSafe for FsError
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