#[non_exhaustive]pub enum FsErrorKind {
NotFound(String),
Other,
}Expand description
Error kind returned by a SessionFsProvider method.
The SDK maps this onto the wire schema’s SessionFsError:
FsErrorKind::NotFound becomes ENOENT, everything else becomes UNKNOWN.
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 does not exist.
Other
Any other filesystem error (permission denied, I/O error, etc.).
Trait Implementations§
Source§impl Clone for FsErrorKind
impl Clone for FsErrorKind
Source§fn clone(&self) -> FsErrorKind
fn clone(&self) -> FsErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FsErrorKind
impl Debug for FsErrorKind
Source§impl Display for FsErrorKind
impl Display for FsErrorKind
impl Eq for FsErrorKind
Source§impl From<FsErrorKind> for FsError
impl From<FsErrorKind> for FsError
Source§fn from(kind: FsErrorKind) -> Self
fn from(kind: FsErrorKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FsErrorKind
impl PartialEq for FsErrorKind
Source§fn eq(&self, other: &FsErrorKind) -> bool
fn eq(&self, other: &FsErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FsErrorKind
Auto Trait Implementations§
impl Freeze for FsErrorKind
impl RefUnwindSafe for FsErrorKind
impl Send for FsErrorKind
impl Sync for FsErrorKind
impl Unpin for FsErrorKind
impl UnsafeUnpin for FsErrorKind
impl UnwindSafe for FsErrorKind
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