#[non_exhaustive]pub enum FolderError {
Read {
path: PathBuf,
error: Error,
},
TooBig {
path: PathBuf,
limit: u64,
},
NotUtf8 {
path: PathBuf,
},
Layer(LayerError),
}Expand description
Why a folder could not be read into a layer (read_folder).
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.
Read
A file or folder that could not be read.
TooBig
A file over the limit.
NotUtf8
A file or folder whose name isn’t UTF-8, which no read can name.
Layer(LayerError)
A path the layer refused (a backslash in a name, where the system allows one).
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
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 !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