mysql_common::packets

Type Alias PublicKeyResponseHeader

Source
pub type PublicKeyResponseHeader = ConstU8<InvalidPublicKeyResponse, 0x01>;

Aliased Type§

struct PublicKeyResponseHeader(/* private fields */);

Implementations

Source§

impl<T, const N: u8> ConstU8<T, N>

Source

pub const fn new() -> Self

Source

pub const fn value(&self) -> u8

Trait Implementations

Source§

impl<T: Clone, const N: u8> Clone for ConstU8<T, N>

Source§

fn clone(&self) -> ConstU8<T, N>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug, const N: u8> Debug for ConstU8<T, N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Default, const N: u8> Default for ConstU8<T, N>

Source§

fn default() -> ConstU8<T, N>

Returns the “default value” for a type. Read more
Source§

impl<T: Hash, const N: u8> Hash for ConstU8<T, N>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'de, T, const N: u8> MyDeserialize<'de> for ConstU8<T, N>
where T: Error + Send + Sync + 'static + Default,

Source§

const SIZE: Option<usize> = _

Size hint of a serialized value (in bytes), if it’s constant.
Source§

type Ctx = ()

Some structs defines deserialization in the context of another value. Read more
Source§

fn deserialize((): Self::Ctx, buf: &mut ParseBuf<'de>) -> Result<Self>

Deserializes self from the given buf. Read more
Source§

impl<T, const N: u8> MySerialize for ConstU8<T, N>

Source§

fn serialize(&self, buf: &mut Vec<u8>)

Serializes self into the buf.
Source§

impl<T: PartialEq, const N: u8> PartialEq for ConstU8<T, N>

Source§

fn eq(&self, other: &ConstU8<T, N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: Copy, const N: u8> Copy for ConstU8<T, N>

Source§

impl<T: Eq, const N: u8> Eq for ConstU8<T, N>

Source§

impl<T, const N: u8> StructuralPartialEq for ConstU8<T, N>