pub enum ChronixError {
Wal(WalError),
Schema(SchemaError),
Config(ConfigError),
Capacity(String),
Io(Error),
}Expand description
Top-level error type for the Chronix database.
All crate-level errors are composable into this type via #[from].
Variants§
Wal(WalError)
WAL (Write-Ahead Log) errors.
Schema(SchemaError)
Schema validation and evolution errors.
Config(ConfigError)
Configuration errors.
Capacity(String)
Capacity exceeded (backpressure).
Io(Error)
I/O errors.
Trait Implementations§
Source§impl Debug for ChronixError
impl Debug for ChronixError
Source§impl Display for ChronixError
impl Display for ChronixError
Source§impl Error for ChronixError
impl Error for ChronixError
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 ChronixError
impl From<ConfigError> for ChronixError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ChronixError
impl From<Error> for ChronixError
Source§impl From<SchemaError> for ChronixError
impl From<SchemaError> for ChronixError
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ChronixError
impl !UnwindSafe for ChronixError
impl Freeze for ChronixError
impl Send for ChronixError
impl Sync for ChronixError
impl Unpin for ChronixError
impl UnsafeUnpin for ChronixError
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