pub enum DeleteHeaderError {
IoError(PathBuf, Error),
UnrecognizedExtension(PathBuf),
}
Expand description
Errors that can occur when deleting a header
Variants§
IoError(PathBuf, Error)
IO error while deleting the header from the path
UnrecognizedExtension(PathBuf)
The file at the path had an unrecognized extension
Trait Implementations§
Source§impl Debug for DeleteHeaderError
impl Debug for DeleteHeaderError
Source§impl Display for DeleteHeaderError
impl Display for DeleteHeaderError
Source§impl Error for DeleteHeaderError
impl Error for DeleteHeaderError
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<DeleteHeaderError> for DeleteHeadersRecursivelyError
impl From<DeleteHeaderError> for DeleteHeadersRecursivelyError
Source§fn from(value: DeleteHeaderError) -> Self
fn from(value: DeleteHeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeleteHeaderError
impl !RefUnwindSafe for DeleteHeaderError
impl Send for DeleteHeaderError
impl Sync for DeleteHeaderError
impl Unpin for DeleteHeaderError
impl !UnwindSafe for DeleteHeaderError
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