pub enum ExecError {
Cancelled,
Connect(Box<ConnectError>),
Config {
message: String,
hint: Option<String>,
},
InvalidParams(String),
ResultTooLarge {
row_count: usize,
payload_bytes: usize,
},
Sql {
sqlstate: String,
message: String,
detail: Option<String>,
hint: Option<String>,
position: Option<String>,
},
Internal(String),
}Variants§
Cancelled
Connect(Box<ConnectError>)
Config
InvalidParams(String)
ResultTooLarge
Reserved variant: the inline path now soft-truncates instead of erroring, but this variant is preserved so future callers (e.g. a dedicated row-limit gate) can opt back into the hard-fail shape.
Sql
Fields
Internal(String)
Trait Implementations§
Source§impl From<ConnectionConfigError> for ExecError
impl From<ConnectionConfigError> for ExecError
Source§fn from(err: ConnectionConfigError) -> Self
fn from(err: ConnectionConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecError
impl RefUnwindSafe for ExecError
impl Send for ExecError
impl Sync for ExecError
impl Unpin for ExecError
impl UnsafeUnpin for ExecError
impl UnwindSafe for ExecError
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