#[non_exhaustive]pub enum Driver {
Auth(String),
ConnectionBroken,
ConnectionLocked,
Io(ErrorKind, String),
Json(Arc<Error>),
Other(String),
}
Expand description
An error has occurred within the driver
This may be a driver bug, or it may be an unfulfillable command, such as an unserializable query.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auth(String)
ConnectionBroken
ConnectionLocked
Io(ErrorKind, String)
Json(Arc<Error>)
Other(String)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl !UnwindSafe for Driver
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