pub enum ImportError {
Io(Error),
Config(ConfigError),
NonZeroError(TryFromIntError),
InvalidHasherName {
expected: String,
found: String,
},
InvalidHasherHeader {
found: String,
},
}Expand description
Error type for import operations.
Variants§
Io(Error)
Error due to underlying IO error.
Config(ConfigError)
Error due to reading invalid stored configuration.
NonZeroError(TryFromIntError)
Error due to reading a zero value for a field that does not allow zeroes.
InvalidHasherName
Error due to mismatch in hasher names, between the stored and expected hasher.
Fields
§
expected: StringExpected name for the hasher (defined by the type of hasher for crate::CuckooFilter).
InvalidHasherHeader
Error due to malformed header in the export.
Trait Implementations§
Source§impl Debug for ImportError
impl Debug for ImportError
Source§impl Display for ImportError
impl Display for ImportError
Source§impl Error for ImportError
impl Error for ImportError
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
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<ConfigError> for ImportError
impl From<ConfigError> for ImportError
Source§fn from(value: ConfigError) -> Self
fn from(value: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ImportError
impl From<Error> for ImportError
Source§impl From<TryFromIntError> for ImportError
impl From<TryFromIntError> for ImportError
Source§fn from(value: TryFromIntError) -> Self
fn from(value: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ImportError
impl !UnwindSafe for ImportError
impl Freeze for ImportError
impl Send for ImportError
impl Sync for ImportError
impl Unpin for ImportError
impl UnsafeUnpin for ImportError
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