pub enum GeneratorOrIOError {
GeneratorError(GeneratorError),
IOError(Error),
}
Available on crate features
std
and easy-functions
only.Expand description
The error type describing either a generator error or an I/O error.
This type contains either:
- A fuzzy hash generator error (
GeneratorError
) or - An I/O error (
std::io::Error
).
Variants§
GeneratorError(GeneratorError)
An error caused by the fuzzy hash generator.
IOError(Error)
An error caused by an internal I/O operation.
Trait Implementations§
Source§impl Debug for GeneratorOrIOError
impl Debug for GeneratorOrIOError
Source§impl Display for GeneratorOrIOError
impl Display for GeneratorOrIOError
Source§impl Error for GeneratorOrIOError
impl Error for GeneratorOrIOError
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 GeneratorOrIOError
impl From<Error> for GeneratorOrIOError
Source§impl From<GeneratorError> for GeneratorOrIOError
impl From<GeneratorError> for GeneratorOrIOError
Source§fn from(value: GeneratorError) -> Self
fn from(value: GeneratorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GeneratorOrIOError
impl !RefUnwindSafe for GeneratorOrIOError
impl Send for GeneratorOrIOError
impl Sync for GeneratorOrIOError
impl Unpin for GeneratorOrIOError
impl !UnwindSafe for GeneratorOrIOError
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