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