pub enum RusticxError {
Show 14 variants
Connection(String),
Query(String),
Serialization(String),
Deserialization(String),
NotFound(String),
DuplicateKey(String),
Migration(String),
Schema(String),
Transaction(String),
Pool(String),
Unsupported(String),
Configuration(String),
TypeMismatch {
expected: String,
got: String,
},
Unknown(String),
}Expand description
All errors that Rusticx operations can produce.
Every fallible method in Rusticx returns Result<T, RusticxError>.
Match on specific variants to handle connection failures, missing records,
schema problems, or type mismatches independently.
Variants§
Connection(String)
Query(String)
Serialization(String)
Deserialization(String)
NotFound(String)
DuplicateKey(String)
Migration(String)
Schema(String)
Transaction(String)
Pool(String)
Unsupported(String)
Configuration(String)
TypeMismatch
Unknown(String)
Trait Implementations§
Source§impl Debug for RusticxError
impl Debug for RusticxError
Source§impl Display for RusticxError
impl Display for RusticxError
Source§impl Error for RusticxError
impl Error for RusticxError
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()
Auto Trait Implementations§
impl Freeze for RusticxError
impl RefUnwindSafe for RusticxError
impl Send for RusticxError
impl Sync for RusticxError
impl Unpin for RusticxError
impl UnsafeUnpin for RusticxError
impl UnwindSafe for RusticxError
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