Struct cassandra_protocol::frame::frame_error::ErrorBody
source · [−]pub struct ErrorBody {
pub error_code: CInt,
pub message: String,
pub additional_info: AdditionalErrorInfo,
}
Expand description
CDRS error which could be returned by Cassandra server as a response. As it goes
from the specification it contains an error code and an error message. Apart of those
depending of type of error it could contain an additional information about an error.
This additional information is represented by additional_info
property which is ErrorKind
.
Fields
error_code: CInt
i32
that points to a type of error.
message: String
Error message string.
additional_info: AdditionalErrorInfo
Additional information.
Trait Implementations
sourceimpl FromCursor for ErrorBody
impl FromCursor for ErrorBody
sourceimpl Ord for ErrorBody
impl Ord for ErrorBody
sourceimpl PartialOrd<ErrorBody> for ErrorBody
impl PartialOrd<ErrorBody> for ErrorBody
sourcefn partial_cmp(&self, other: &ErrorBody) -> Option<Ordering>
fn partial_cmp(&self, other: &ErrorBody) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for ErrorBody
impl StructuralEq for ErrorBody
impl StructuralPartialEq for ErrorBody
Auto Trait Implementations
impl RefUnwindSafe for ErrorBody
impl Send for ErrorBody
impl Sync for ErrorBody
impl Unpin for ErrorBody
impl UnwindSafe for ErrorBody
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more