#[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 for ResultKind
impl PartialEq 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 for ResultKind
impl PartialOrd 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 moresource§impl Serialize for ResultKind
impl Serialize for ResultKind
source§impl TryFrom<i32> for ResultKind
impl TryFrom<i32> for ResultKind
impl Copy for ResultKind
impl Eq for ResultKind
impl StructuralPartialEq for ResultKind
Auto Trait Implementations§
impl Freeze for ResultKind
impl RefUnwindSafe for ResultKind
impl Send for ResultKind
impl Sync for ResultKind
impl Unpin for ResultKind
impl UnwindSafe for ResultKind
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more