#[non_exhaustive]pub enum ExportError {
ReadError {
path: PathBuf,
source: Error,
},
WriteError {
path: PathBuf,
source: Error,
},
WalkDirError {
path: PathBuf,
source: Error,
},
ModTimeReadError {
path: PathBuf,
source: Error,
},
ModTimeSetError {
path: PathBuf,
source: Error,
},
PathDoesNotExist {
path: PathBuf,
},
CharacterEncodingError {
source: Utf8Error,
},
RecursionLimitExceeded {
file_tree: Vec<PathBuf>,
},
FileExportError {
path: PathBuf,
source: Box<ExportError>,
},
FrontMatterDecodeError {
path: PathBuf,
source: Box<Error>,
},
FrontMatterEncodeError {
path: PathBuf,
source: Box<Error>,
},
}
Expand description
ExportError
represents all errors which may be returned when using this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ReadError
This occurs when a read IO operation fails.
WriteError
This occurs when a write IO operation fails.
WalkDirError
This occurs when an error is encountered while trying to walk a directory.
ModTimeReadError
This occurs when a file’s modified time cannot be read
ModTimeSetError
This occurs when a file’s modified time cannot be set
PathDoesNotExist
This occurs when an operation is requested on a file or directory which does not exist.
CharacterEncodingError
This error may occur when invalid UTF8 is encountered.
Currently, operations which assume UTF8 perform lossy encoding however.
RecursionLimitExceeded
This error occurs when embedded notes are too deeply nested or cause an infinite loop.
When this happens, file_tree
contains a list of all the files which were processed
leading up to this error.
FileExportError
This occurs when a file fails to export successfully.
FrontMatterDecodeError
FrontMatterEncodeError
Trait Implementations§
Source§impl Debug for ExportError
impl Debug for ExportError
Source§impl Display for ExportError
impl Display for ExportError
Source§impl Error for ExportError
impl Error for ExportError
Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
Source§impl ErrorCompat for ExportError
impl ErrorCompat for ExportError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Error::source
. Read moreAuto Trait Implementations§
impl Freeze for ExportError
impl !RefUnwindSafe for ExportError
impl Send for ExportError
impl Sync for ExportError
impl Unpin for ExportError
impl !UnwindSafe for ExportError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more