pub enum FolderError {
Absolute(String),
Escape(String),
NotFound(String),
Exists(String),
ReadOnly,
TooLarge {
path: String,
size: u64,
limit: u64,
hint: &'static str,
},
Invalid(String),
Io {
path: String,
source: Error,
},
}Expand description
Why a folder operation was refused or failed.
Variants§
Absolute(String)
An absolute path was given.
Escape(String)
The path uses .. or resolves (through a symlink) outside the root.
NotFound(String)
Nothing exists at the path.
Exists(String)
The target already exists.
ReadOnly
A write or move on a read-only server.
TooLarge
The file or content is over the configured size limit.
Fields
Invalid(String)
Bad arguments: wrong kind of entry, bad glob or regex, empty range.
Io
Any other I/O failure.
Implementations§
Trait Implementations§
Source§impl Debug for FolderError
impl Debug for FolderError
Source§impl Display for FolderError
impl Display for FolderError
Source§impl Error for FolderError
impl Error for FolderError
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 FolderError
impl !UnwindSafe for FolderError
impl Freeze for FolderError
impl Send for FolderError
impl Sync for FolderError
impl Unpin for FolderError
impl UnsafeUnpin for FolderError
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