pub enum EngineError {
Io(Error),
Journal(JournalError),
Index(IndexError),
Repository(RepositoryError),
Registry(RegistryError),
InvalidPath {
path: String,
},
InvalidUtf8 {
path: PathBuf,
},
ChannelClosed,
Foyer(Error),
FoyerIo(IoError),
Cancelled,
InvalidTimeRange {
start: u32,
end: u32,
},
}Expand description
Errors that can occur during engine operations
Variants§
Io(Error)
I/O error when reading files
Journal(JournalError)
Error from journal core operations
Index(IndexError)
Error from journal indexing operations
Repository(RepositoryError)
Error from repository operations
Registry(RegistryError)
Error from registry operations
InvalidPath
Error when parsing a journal file path
InvalidUtf8
Error when a path contains invalid UTF-8
ChannelClosed
Channel closed error
Foyer(Error)
Foyer cache error
FoyerIo(IoError)
Foyer IO engine error
Cancelled
Operation was cancelled
InvalidTimeRange
Invalid time range (start >= end)
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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 EngineError
impl From<Error> for EngineError
Source§impl From<Error> for EngineError
impl From<Error> for EngineError
Source§impl From<IndexError> for EngineError
impl From<IndexError> for EngineError
Source§fn from(source: IndexError) -> Self
fn from(source: IndexError) -> Self
Converts to this type from the input type.
Source§impl From<IoError> for EngineError
impl From<IoError> for EngineError
Source§impl From<JournalError> for EngineError
impl From<JournalError> for EngineError
Source§fn from(source: JournalError) -> Self
fn from(source: JournalError) -> Self
Converts to this type from the input type.
Source§impl From<RegistryError> for EngineError
impl From<RegistryError> for EngineError
Source§fn from(source: RegistryError) -> Self
fn from(source: RegistryError) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryError> for EngineError
impl From<RepositoryError> for EngineError
Source§fn from(source: RepositoryError) -> Self
fn from(source: RepositoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EngineError
impl !UnwindSafe for EngineError
impl Freeze for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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