pub enum IndexError {
ZeroBucketDuration,
EmptyHistogramInput,
InvalidQueryTimeRange,
InvalidRegex,
InvalidFieldPrefix,
NonUtf8Payload,
NonIntegerPayload,
MissingFieldName,
MissingOffset,
Journal(JournalError),
}Expand description
Errors that can occur during journal indexing operations.
Variants§
ZeroBucketDuration
Bucket duration cannot be zero
EmptyHistogramInput
Cannot create a histogram from empty input
InvalidQueryTimeRange
Invalid query time range
InvalidRegex
Invalid regex pattern
InvalidFieldPrefix
Data payload does not contain this field prefix
NonUtf8Payload
Field value not utf8
NonIntegerPayload
Field value can not be parsed as integer
MissingFieldName
Log entry does not have this field
MissingOffset
Missing required offset in journal file
Journal(JournalError)
Underlying journal file error
Trait Implementations§
Source§impl Debug for IndexError
impl Debug for IndexError
Source§impl Display for IndexError
impl Display for IndexError
Source§impl Error for IndexError
impl Error for IndexError
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<JournalError> for IndexError
impl From<JournalError> for IndexError
Source§fn from(source: JournalError) -> Self
fn from(source: JournalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for IndexError
impl !UnwindSafe for IndexError
impl Freeze for IndexError
impl Send for IndexError
impl Sync for IndexError
impl Unpin for IndexError
impl UnsafeUnpin for IndexError
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