pub enum ForensicError {
PermissionError,
NoMoreData,
Other(String),
Missing(MissingError),
BadFormat(BadFormatError),
Io(Error),
CastError,
IllegalTimestamp(String),
}Variants§
PermissionError
NoMoreData
Other(String)
Missing(MissingError)
BadFormat(BadFormatError)
Io(Error)
CastError
IllegalTimestamp(String)
Implementations§
Source§impl ForensicError
impl ForensicError
Sourcepub fn bad_format_str(err: &'static str) -> Self
pub fn bad_format_str(err: &'static str) -> Self
Create a BadFormatError from a static string slice
Sourcepub fn bad_format_string(err: String) -> Self
pub fn bad_format_string(err: String) -> Self
Create a BadFormatError from a String
Sourcepub fn missing_str(err: &'static str) -> Self
pub fn missing_str(err: &'static str) -> Self
Create a MissingError from a static string slice
Sourcepub fn missing_string(err: String) -> Self
pub fn missing_string(err: String) -> Self
Create a MissingError from a String
Trait Implementations§
Source§impl Clone for ForensicError
impl Clone for ForensicError
Source§impl Debug for ForensicError
impl Debug for ForensicError
Source§impl Display for ForensicError
impl Display for ForensicError
Source§impl Error for ForensicError
impl Error for ForensicError
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
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<&BadFormatError> for ForensicError
impl From<&BadFormatError> for ForensicError
Source§fn from(value: &BadFormatError) -> Self
fn from(value: &BadFormatError) -> Self
Converts to this type from the input type.
Source§impl From<&MissingError> for ForensicError
impl From<&MissingError> for ForensicError
Source§fn from(value: &MissingError) -> Self
fn from(value: &MissingError) -> Self
Converts to this type from the input type.
Source§impl From<&String> for ForensicError
impl From<&String> for ForensicError
Source§impl From<&str> for ForensicError
impl From<&str> for ForensicError
Source§impl From<BadFormatError> for ForensicError
impl From<BadFormatError> for ForensicError
Source§fn from(value: BadFormatError) -> Self
fn from(value: BadFormatError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ForensicError
impl From<Error> for ForensicError
Source§impl From<MissingError> for ForensicError
impl From<MissingError> for ForensicError
Source§fn from(value: MissingError) -> Self
fn from(value: MissingError) -> Self
Converts to this type from the input type.
Source§impl From<String> for ForensicError
impl From<String> for ForensicError
Source§impl PartialEq for ForensicError
impl PartialEq for ForensicError
impl Eq for ForensicError
Auto Trait Implementations§
impl Freeze for ForensicError
impl !RefUnwindSafe for ForensicError
impl Send for ForensicError
impl Sync for ForensicError
impl Unpin for ForensicError
impl !UnwindSafe for ForensicError
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