#[non_exhaustive]pub enum SmbError {
Show 18 variants
NotFound,
PathNotFound,
AccessDenied,
Exists,
NotEmpty,
IsDirectory,
NotADirectory,
NameInvalid,
Sharing,
NotSupported,
NotSameDevice,
Io(Error),
DiskFull,
QuotaExceeded,
InvalidParameter,
SpecialFile,
EaTooLarge,
EaNameInvalid,
}Expand description
Errors returned by ShareBackend and surfaced through the SMB protocol.
to_nt_status maps each variant to one NTSTATUS code. Protocol-layer
failures (malformed frames, bad signatures) are handled by the dispatcher
and never become SmbError.
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
PathNotFound
AccessDenied
Exists
NotEmpty
IsDirectory
NotADirectory
NameInvalid
Sharing
NotSupported
NotSameDevice
Io(Error)
DiskFull
QuotaExceeded
InvalidParameter
The request carries a value the backend does not take, such as data a stream with a fixed layout cannot hold.
SpecialFile
The name is a FIFO, a socket or a device node, which the backend does not open.
EaTooLarge
The extended attributes of a file would take more room than the backend gives them.
EaNameInvalid
The backend cannot store an extended attribute under this name.
Implementations§
Trait Implementations§
Source§impl Error for SmbError
impl Error for SmbError
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 SmbError
impl !UnwindSafe for SmbError
impl Forget for SmbError
impl Freeze for SmbError
impl Move for SmbError
impl Send for SmbError
impl Sync for SmbError
impl Unpin for SmbError
impl UnsafeUnpin for SmbError
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