#[repr(u8)]pub enum RequestOpcode {
Startup = 1,
Options = 5,
Query = 7,
Prepare = 9,
Execute = 10,
Register = 11,
Batch = 13,
AuthResponse = 15,
}
Variants§
Startup = 1
Options = 5
Query = 7
Prepare = 9
Execute = 10
Register = 11
Batch = 13
AuthResponse = 15
Trait Implementations§
Source§impl Clone for RequestOpcode
impl Clone for RequestOpcode
Source§fn clone(&self) -> RequestOpcode
fn clone(&self) -> RequestOpcode
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 RequestOpcode
impl Debug for RequestOpcode
Source§impl Ord for RequestOpcode
impl Ord for RequestOpcode
Source§fn cmp(&self, other: &RequestOpcode) -> Ordering
fn cmp(&self, other: &RequestOpcode) -> 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 RequestOpcode
impl PartialEq for RequestOpcode
Source§impl PartialOrd for RequestOpcode
impl PartialOrd for RequestOpcode
Source§impl TryFrom<u8> for RequestOpcode
impl TryFrom<u8> for RequestOpcode
Source§type Error = TryFromPrimitiveError<RequestOpcode>
type Error = TryFromPrimitiveError<RequestOpcode>
The type returned in the event of a conversion error.
Source§fn try_from(
number: u8,
) -> Result<RequestOpcode, TryFromPrimitiveError<RequestOpcode>>
fn try_from( number: u8, ) -> Result<RequestOpcode, TryFromPrimitiveError<RequestOpcode>>
Performs the conversion.
Source§impl TryFromPrimitive for RequestOpcode
impl TryFromPrimitive for RequestOpcode
const NAME: &'static str = "RequestOpcode"
type Primitive = u8
fn try_from_primitive( number: <RequestOpcode as TryFromPrimitive>::Primitive, ) -> Result<RequestOpcode, TryFromPrimitiveError<RequestOpcode>>
impl Copy for RequestOpcode
impl Eq for RequestOpcode
impl StructuralPartialEq for RequestOpcode
Auto Trait Implementations§
impl Freeze for RequestOpcode
impl RefUnwindSafe for RequestOpcode
impl Send for RequestOpcode
impl Sync for RequestOpcode
impl Unpin for RequestOpcode
impl UnwindSafe for RequestOpcode
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