#[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§impl PartialOrd for ResultKind
impl PartialOrd for ResultKind
Source§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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