#[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§impl PartialOrd for ResponseOpcode
impl PartialOrd for ResponseOpcode
Source§impl TryFrom<u8> for ResponseOpcode
impl TryFrom<u8> for ResponseOpcode
Source§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
const NAME: &'static str = "ResponseOpcode"
type Primitive = u8
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 Freeze for ResponseOpcode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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