Enum discord_cassandra_cpp::ErrorKind
source · [−]pub enum ErrorKind {
StringContainsNul(NulError),
InvalidUtf8(Utf8Error),
Msg(String),
CassError(CassErrorCode, String),
BatchSessionMismatch,
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
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
sourceimpl ErrorKind
impl ErrorKind
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more