pub enum FormatError {
InvalidIpAddress(String),
InvalidPattern(String),
IpTreeError(String),
PatternError(String),
LiteralHashError(String),
IoError(String),
ValidationError(String),
Other(String),
}Expand description
Errors that can occur during database format operations
Variants§
InvalidIpAddress(String)
Invalid IP address or CIDR notation
InvalidPattern(String)
Invalid pattern syntax
IpTreeError(String)
IP tree building error
PatternError(String)
Pattern matching error
LiteralHashError(String)
Literal hash error
IoError(String)
I/O error
ValidationError(String)
Entry validation error (schema validation failed)
Other(String)
Generic error
Trait Implementations§
Source§impl Clone for FormatError
impl Clone for FormatError
Source§fn clone(&self) -> FormatError
fn clone(&self) -> FormatError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatError
impl Debug for FormatError
Source§impl Display for FormatError
impl Display for FormatError
Source§impl Error for FormatError
impl Error for FormatError
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<&str> for FormatError
impl From<&str> for FormatError
Source§impl From<Error> for FormatError
impl From<Error> for FormatError
Source§impl From<FormatError> for ParaglobError
impl From<FormatError> for ParaglobError
Source§fn from(err: FormatError) -> Self
fn from(err: FormatError) -> Self
Converts to this type from the input type.
Source§impl From<IpTreeError> for FormatError
impl From<IpTreeError> for FormatError
Source§fn from(err: IpTreeError) -> Self
fn from(err: IpTreeError) -> Self
Converts to this type from the input type.
Source§impl From<LiteralHashError> for FormatError
impl From<LiteralHashError> for FormatError
Source§fn from(err: LiteralHashError) -> Self
fn from(err: LiteralHashError) -> Self
Converts to this type from the input type.
Source§impl From<ParaglobError> for FormatError
impl From<ParaglobError> for FormatError
Source§fn from(err: ParaglobError) -> Self
fn from(err: ParaglobError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FormatError
impl RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl UnwindSafe for FormatError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more