#[non_exhaustive]pub enum VfsError {
Show 14 variants
NotFound(String),
PermissionDenied(String),
IsDirectory(String),
PathTraversal {
attempted: String,
root: String,
},
ScopeViolation {
path: String,
scope: String,
},
ResourceLimit(String),
Timeout(String),
OperationDenied(String),
StaleRead {
path: String,
},
NotRead {
path: String,
},
IndexDenied {
reason: String,
},
IndexNotReady(String),
Unsupported(String),
Io(Error),
}Expand description
VFS operation errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotFound(String)
File or directory not found.
PermissionDenied(String)
Permission denied.
IsDirectory(String)
Expected file, got directory.
PathTraversal
Path traversal attempt blocked.
ScopeViolation
Operation outside allowed scope.
ResourceLimit(String)
Resource limit exceeded.
Timeout(String)
Operation timed out.
OperationDenied(String)
User denied approval.
StaleRead
File was modified externally since last read. Re-read before editing.
NotRead
File has not been read yet. Read before editing.
IndexDenied
Indexing denied for safety reasons.
IndexNotReady(String)
Index is not ready yet — still building.
Unsupported(String)
Provider doesn’t support operation.
Io(Error)
I/O error.
Trait Implementations§
Source§impl Error for VfsError
impl Error for VfsError
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 Freeze for VfsError
impl !RefUnwindSafe for VfsError
impl Send for VfsError
impl Sync for VfsError
impl Unpin for VfsError
impl UnsafeUnpin for VfsError
impl !UnwindSafe for VfsError
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