pub enum FolderError {
ReadOnly,
NotFound(String),
Unsupported,
Io(String),
}Expand description
Errors produced by writable-folder I/O.
Variants§
ReadOnly
The folder (or backing store) is read-only.
NotFound(String)
The named file does not exist.
Unsupported
Writable folders are not available on this platform/build.
Io(String)
Any other I/O failure.
Trait Implementations§
Source§impl Clone for FolderError
impl Clone for FolderError
Source§fn clone(&self) -> FolderError
fn clone(&self) -> FolderError
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 FolderError
impl Debug for FolderError
Source§impl Display for FolderError
impl Display for FolderError
Source§impl Error for FolderError
impl Error for FolderError
1.30.0 · 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 FolderError
impl RefUnwindSafe for FolderError
impl Send for FolderError
impl Sync for FolderError
impl Unpin for FolderError
impl UnsafeUnpin for FolderError
impl UnwindSafe 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