pub struct EngineError {
pub kind: EngineErrorKind,
pub message: Option<String>,
}Expand description
A fully owned engine error: DuckDB’s own classification plus its message.
Pure Rust — every field is copied out of DuckDB memory when the error is
built, so an EngineError stays valid after the handle it came from is
destroyed and after the connection is closed.
Fields§
§kind: EngineErrorKindHow DuckDB classified the failure.
message: Option<String>DuckDB’s message, if it supplied one.
Implementations§
Source§impl EngineError
impl EngineError
Builds an engine error with no typed classification available.
Use for DuckDB APIs that expose only a status code and a message, so the absence of a kind is explicit rather than guessed.
Trait Implementations§
Source§impl Clone for EngineError
impl Clone for EngineError
Source§fn clone(&self) -> EngineError
fn clone(&self) -> EngineError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
impl Eq for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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 PartialEq for EngineError
impl PartialEq for EngineError
Source§fn eq(&self, other: &EngineError) -> bool
fn eq(&self, other: &EngineError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EngineError
Auto Trait Implementations§
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl UnwindSafe 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