pub enum ErrorKind {
StringContainsNul(NulError),
InvalidUtf8(Utf8Error),
Msg(String),
CassError(CassErrorCode, String),
BatchSessionMismatch(Session, Session),
CassErrorResult(CassErrorCode, String, Consistency, i32, i32, i32, bool, WriteType, Option<String>, Option<String>, Option<(String, Vec<String>)>),
UnsupportedType(&'static str, ValueType),
// some variants omitted
}
Expand description
The kind of an error.
Variants§
StringContainsNul(NulError)
Attempted to pass a string containing \0
to Cassandra
InvalidUtf8(Utf8Error)
Attempted to decode an invalid UTF-8-encoded string
Msg(String)
A convenient variant for String.
CassError(CassErrorCode, String)
Cassandra error.
BatchSessionMismatch(Session, Session)
Errors that happen when an invalid session is passed to a batch.
CassErrorResult(CassErrorCode, String, Consistency, i32, i32, i32, bool, WriteType, Option<String>, Option<String>, Option<(String, Vec<String>)>)
Cassandra error result with extended information.
UnsupportedType(&'static str, ValueType)
Unsupported type encountered.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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