Enum file_header::AddHeaderError
source · 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)>
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 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