#[non_exhaustive]
pub enum ResultKind {
Void,
Rows,
SetKeyspace,
Prepared,
SchemaChange,
}
Expand description
ResultKind
is enum which represents types of result.
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.
Void
Void result.
Rows
Rows result.
SetKeyspace
Set keyspace result.
Prepared
Prepared result.
SchemaChange
Schema change result.
Trait Implementations§
source§impl Clone for ResultKind
impl Clone for ResultKind
source§fn clone(&self) -> ResultKind
fn clone(&self) -> ResultKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResultKind
impl Debug for ResultKind
source§impl Display for ResultKind
impl Display for ResultKind
source§impl From<ResultKind> for CInt
impl From<ResultKind> for CInt
source§fn from(value: ResultKind) -> Self
fn from(value: ResultKind) -> Self
Converts to this type from the input type.
source§impl FromBytes for ResultKind
impl FromBytes for ResultKind
source§fn from_bytes(bytes: &[u8]) -> Result<ResultKind>
fn from_bytes(bytes: &[u8]) -> Result<ResultKind>
It gets and array of bytes and should return an implementor struct.
source§impl FromCursor for ResultKind
impl FromCursor for ResultKind
source§fn from_cursor(
cursor: &mut Cursor<&[u8]>,
_version: Version
) -> Result<ResultKind>
fn from_cursor( cursor: &mut Cursor<&[u8]>, _version: Version ) -> Result<ResultKind>
Tries to parse Self from a cursor of bytes.
source§impl Hash for ResultKind
impl Hash for ResultKind
source§impl Ord for ResultKind
impl Ord for ResultKind
source§fn cmp(&self, other: &ResultKind) -> Ordering
fn cmp(&self, other: &ResultKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ResultKind> for ResultKind
impl PartialEq<ResultKind> for ResultKind
source§fn eq(&self, other: &ResultKind) -> bool
fn eq(&self, other: &ResultKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ResultKind> for ResultKind
impl PartialOrd<ResultKind> for ResultKind
source§fn partial_cmp(&self, other: &ResultKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ResultKind) -> Option<Ordering>
1.0.0 · source§fn 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