Enum cassandra_protocol::frame::message_result::ResultKind
source · [−]pub enum ResultKind {
Void,
Rows,
SetKeyspace,
Prepared,
SchemaChange,
}
Expand description
ResultKind
is enum which represents types of result.
Variants
Void
Void result.
Rows
Rows result.
SetKeyspace
Set keyspace result.
Prepared
Prepared result.
SchemaChange
Schema change result.
Trait Implementations
sourceimpl Clone for ResultKind
impl Clone for ResultKind
sourcefn clone(&self) -> ResultKind
fn clone(&self) -> ResultKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ResultKind
impl Debug for ResultKind
sourceimpl Display for ResultKind
impl Display for ResultKind
sourceimpl From<ResultKind> for CInt
impl From<ResultKind> for CInt
sourcefn from(value: ResultKind) -> Self
fn from(value: ResultKind) -> Self
Converts to this type from the input type.
sourceimpl FromBytes for ResultKind
impl FromBytes for ResultKind
sourcefn 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.
sourceimpl FromCursor for ResultKind
impl FromCursor for ResultKind
sourcefn 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.
sourceimpl Hash for ResultKind
impl Hash for ResultKind
sourceimpl Ord for ResultKind
impl Ord for ResultKind
sourcefn cmp(&self, other: &ResultKind) -> Ordering
fn cmp(&self, other: &ResultKind) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ResultKind> for ResultKind
impl PartialEq<ResultKind> for ResultKind
sourcefn eq(&self, other: &ResultKind) -> bool
fn eq(&self, other: &ResultKind) -> bool
sourceimpl PartialOrd<ResultKind> for ResultKind
impl PartialOrd<ResultKind> for ResultKind
sourcefn partial_cmp(&self, other: &ResultKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ResultKind) -> Option<Ordering>
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 moresourceimpl Serialize for ResultKind
impl Serialize for ResultKind
sourceimpl TryFrom<i32> for ResultKind
impl TryFrom<i32> for ResultKind
impl Copy for ResultKind
impl Eq for ResultKind
impl StructuralEq for ResultKind
impl StructuralPartialEq for ResultKind
Auto Trait Implementations
impl RefUnwindSafe for ResultKind
impl Send for ResultKind
impl Sync for ResultKind
impl Unpin for ResultKind
impl UnwindSafe for ResultKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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