pub enum TdbError {
Show 17 variants
Io(Error),
PageNotFound(u64),
BufferPoolFull,
InvalidPageSize {
expected: usize,
got: usize,
},
Transaction(String),
Deadlock {
txn_id: u64,
},
TransactionNotActive {
txn_id: u64,
},
InvalidNodeId(u64),
Serialization(String),
Deserialization(String),
NodeTooLarge {
size: usize,
max: usize,
},
Index(String),
Wal(String),
InvalidInput(String),
InvalidConfiguration(String),
Unsupported(String),
Other(String),
}Expand description
TDB error type
Variants§
Io(Error)
I/O error
PageNotFound(u64)
Page not found
BufferPoolFull
Buffer pool full
InvalidPageSize
Invalid page size
Transaction(String)
Transaction error
Deadlock
Deadlock detected
TransactionNotActive
Transaction not active
InvalidNodeId(u64)
Invalid node ID
Serialization(String)
Serialization error
Deserialization(String)
Deserialization error
NodeTooLarge
Node too large to fit in page
Index(String)
Index error
Wal(String)
WAL error
InvalidInput(String)
Invalid input
InvalidConfiguration(String)
Invalid configuration
Unsupported(String)
Unsupported feature or operation
Other(String)
Generic error
Trait Implementations§
Source§impl Error for TdbError
impl Error for TdbError
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()
Auto Trait Implementations§
impl Freeze for TdbError
impl !RefUnwindSafe for TdbError
impl Send for TdbError
impl Sync for TdbError
impl Unpin for TdbError
impl !UnwindSafe for TdbError
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> 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