pub enum PandocError {
BadUtf8Conversion(usize),
IoErr(Error),
Err(Output),
NoOutputSpecified,
NoInputSpecified,
PandocNotFound,
}
Expand description
Possible errors that can occur before or during pandoc execution
Variants§
BadUtf8Conversion(usize)
conversion from UTF-8 failed; includes valid-up-to byte count.
IoErr(Error)
some kind of IO-Error
Err(Output)
pandoc execution failed, provide output from stderr
NoOutputSpecified
forgot to specify an output file
NoInputSpecified
forgot to specify any input files
PandocNotFound
pandoc executable not found
Trait Implementations§
Source§impl Debug for PandocError
impl Debug for PandocError
Source§impl Display for PandocError
impl Display for PandocError
Source§impl Error for PandocError
impl Error for PandocError
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
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()
Source§impl From<Error> for PandocError
impl From<Error> for PandocError
Auto Trait Implementations§
impl Freeze for PandocError
impl !RefUnwindSafe for PandocError
impl Send for PandocError
impl Sync for PandocError
impl Unpin for PandocError
impl !UnwindSafe for PandocError
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
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>
Converts
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>
Converts
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