Enum BookkeepingError
pub enum BookkeepingError {
Sqlite(Error),
SqlSurface(StatementRunError),
StoreFormat(String),
Wire(String),
}Expand description
The narrow error currency of the moved bookkeeping helpers (extraction plan,
decision C2). It converts losslessly into BOTH MasterError (the replicator’s remaining
call sites, via its From impl there) and WritePlaneError (the coordinator) — four
1:1 arms each, no catch-all, so a fifth variant is a compile error on both conversions.
Variants§
Sqlite(Error)
A SQLite failure — the ONLY representation one is allowed (see the
From<StatementRunError> normalization below).
SqlSurface(StatementRunError)
A typed public-surface failure (idempotency-key shape, result caps, migration
classification, …). Never wraps StatementRunError::Sqlite.
StoreFormat(String)
A stored row has an unknown or incompatible format.
Wire(String)
A wire encode failure.
Trait Implementations§
§impl Debug for BookkeepingError
impl Debug for BookkeepingError
§impl Display for BookkeepingError
impl Display for BookkeepingError
§impl Error for BookkeepingError
impl Error for BookkeepingError
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<BookkeepingError> for DdlMigrationError
impl From<BookkeepingError> for DdlMigrationError
Source§fn from(error: BookkeepingError) -> DdlMigrationError
fn from(error: BookkeepingError) -> DdlMigrationError
Converts to this type from the input type.
§impl From<BookkeepingError> for WritePlaneError
impl From<BookkeepingError> for WritePlaneError
§fn from(error: BookkeepingError) -> WritePlaneError
fn from(error: BookkeepingError) -> WritePlaneError
Converts to this type from the input type.
§impl From<Error> for BookkeepingError
impl From<Error> for BookkeepingError
§fn from(error: Error) -> BookkeepingError
fn from(error: Error) -> BookkeepingError
Converts to this type from the input type.
§impl From<StatementRunError> for BookkeepingError
impl From<StatementRunError> for BookkeepingError
§fn from(error: StatementRunError) -> BookkeepingError
fn from(error: StatementRunError) -> BookkeepingError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BookkeepingError
impl !RefUnwindSafe for BookkeepingError
impl Send for BookkeepingError
impl Sync for BookkeepingError
impl Unpin for BookkeepingError
impl UnsafeUnpin for BookkeepingError
impl !UnwindSafe for BookkeepingError
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