pub enum VoltError {
Show 17 variants
Io(Error),
RecvError(RecvError),
ExecuteFail(VoltResponseInfo),
InvalidColumnType(i8),
MessageTooLarge(usize),
NoValue(String),
Other(String),
NegativeNumTables(i16),
Utf8Error(Utf8Error),
PoisonError(String),
BadReturnStatusOnTable(i8),
AuthFailed,
ConnectionNotAvailable,
InvalidConfig,
Timeout,
ConnectionClosed,
UnexpectedNull(String),
}Variants§
Io(Error)
RecvError(RecvError)
ExecuteFail(VoltResponseInfo)
InvalidColumnType(i8)
MessageTooLarge(usize)
NoValue(String)
Other(String)
NegativeNumTables(i16)
Utf8Error(Utf8Error)
PoisonError(String)
BadReturnStatusOnTable(i8)
AuthFailed
ConnectionNotAvailable
InvalidConfig
Timeout
ConnectionClosed
UnexpectedNull(String)
Returned when a non-Option type encounters a NULL value.
Use Option
Implementations§
Source§impl VoltError
impl VoltError
Sourcepub fn is_connection_fatal(&self) -> bool
pub fn is_connection_fatal(&self) -> bool
Returns true if this error indicates a fatal connection problem that requires the connection to be replaced/healed.
Source§impl VoltError
VoltError extension methods for async operations
impl VoltError
VoltError extension methods for async operations
pub fn message_too_large(size: usize) -> Self
pub fn connection_closed() -> Self
pub fn timeout() -> Self
Trait Implementations§
Source§impl Error for VoltError
impl Error for VoltError
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<AsyncPoolError> for VoltError
impl From<AsyncPoolError> for VoltError
Source§fn from(e: AsyncPoolError) -> Self
fn from(e: AsyncPoolError) -> Self
Converts to this type from the input type.
Source§impl<T> From<PoisonError<T>> for VoltError
impl<T> From<PoisonError<T>> for VoltError
Source§fn from(p: PoisonError<T>) -> VoltError
fn from(p: PoisonError<T>) -> VoltError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VoltError
impl !RefUnwindSafe for VoltError
impl Send for VoltError
impl Sync for VoltError
impl Unpin for VoltError
impl !UnwindSafe for VoltError
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