Enum scylla::frame::response::ResponseOpcode
source · #[repr(u8)]pub enum ResponseOpcode {
Error = 0,
Ready = 2,
Authenticate = 3,
Supported = 6,
Result = 8,
Event = 12,
AuthChallenge = 14,
AuthSuccess = 16,
}
Variants§
Error = 0
Ready = 2
Authenticate = 3
Supported = 6
Result = 8
Event = 12
AuthChallenge = 14
AuthSuccess = 16
Trait Implementations§
source§impl Clone for ResponseOpcode
impl Clone for ResponseOpcode
source§fn clone(&self) -> ResponseOpcode
fn clone(&self) -> ResponseOpcode
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 ResponseOpcode
impl Debug for ResponseOpcode
source§impl Ord for ResponseOpcode
impl Ord for ResponseOpcode
source§fn cmp(&self, other: &ResponseOpcode) -> Ordering
fn cmp(&self, other: &ResponseOpcode) -> 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 ResponseOpcode
impl PartialEq for ResponseOpcode
source§fn eq(&self, other: &ResponseOpcode) -> bool
fn eq(&self, other: &ResponseOpcode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ResponseOpcode
impl PartialOrd for ResponseOpcode
source§fn partial_cmp(&self, other: &ResponseOpcode) -> Option<Ordering>
fn partial_cmp(&self, other: &ResponseOpcode) -> 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 TryFrom<u8> for ResponseOpcode
impl TryFrom<u8> for ResponseOpcode
§type Error = TryFromPrimitiveError<ResponseOpcode>
type Error = TryFromPrimitiveError<ResponseOpcode>
The type returned in the event of a conversion error.
source§fn try_from(
number: u8
) -> Result<ResponseOpcode, TryFromPrimitiveError<ResponseOpcode>>
fn try_from( number: u8 ) -> Result<ResponseOpcode, TryFromPrimitiveError<ResponseOpcode>>
Performs the conversion.
source§impl TryFromPrimitive for ResponseOpcode
impl TryFromPrimitive for ResponseOpcode
type Primitive = u8
const NAME: &'static str = "ResponseOpcode"
fn try_from_primitive( number: <ResponseOpcode as TryFromPrimitive>::Primitive ) -> Result<ResponseOpcode, TryFromPrimitiveError<ResponseOpcode>>
impl Copy for ResponseOpcode
impl Eq for ResponseOpcode
impl StructuralPartialEq for ResponseOpcode
Auto Trait Implementations§
impl RefUnwindSafe for ResponseOpcode
impl Send for ResponseOpcode
impl Sync for ResponseOpcode
impl Unpin for ResponseOpcode
impl UnwindSafe for ResponseOpcode
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.