pub enum VfsError {
Io(Error),
NotFound,
AlreadyExists,
AccessDenied,
DirectoryNotEmpty,
InvalidArgument,
NotSupported,
StoppedOnSymlink {
target: String,
unparsed_len: u16,
relative: bool,
},
}Expand description
Errors returned by backends. Backends should map their native failures to these; the protocol layer translates them into NT status codes.
Variants§
Io(Error)
Underlying I/O failure.
NotFound
Object does not exist.
AlreadyExists
Object already exists.
AccessDenied
Operation not permitted for this principal.
DirectoryNotEmpty
Directory not empty during removal.
InvalidArgument
A parameter was out of range or malformed.
NotSupported
The backend does not implement the requested operation.
StoppedOnSymlink
A path component is a symbolic link, so traversal stops and the client resolves it ([MS-SMB2] §2.2.2.2.1, STATUS_STOPPED_ON_SYMLINK).
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 !RefUnwindSafe for VfsError
impl !UnwindSafe for VfsError
impl Freeze for VfsError
impl Send for VfsError
impl Sync for VfsError
impl Unpin for VfsError
impl UnsafeUnpin 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