#[non_exhaustive]#[repr(u32)]pub enum mysql_protocol_type {
MYSQL_PROTOCOL_DEFAULT = 0,
MYSQL_PROTOCOL_TCP = 1,
MYSQL_PROTOCOL_SOCKET = 2,
MYSQL_PROTOCOL_PIPE = 3,
MYSQL_PROTOCOL_MEMORY = 4,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MYSQL_PROTOCOL_DEFAULT = 0
MYSQL_PROTOCOL_TCP = 1
MYSQL_PROTOCOL_SOCKET = 2
MYSQL_PROTOCOL_PIPE = 3
MYSQL_PROTOCOL_MEMORY = 4
Trait Implementations§
source§impl Clone for mysql_protocol_type
impl Clone for mysql_protocol_type
source§fn clone(&self) -> mysql_protocol_type
fn clone(&self) -> mysql_protocol_type
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 mysql_protocol_type
impl Debug for mysql_protocol_type
source§impl Hash for mysql_protocol_type
impl Hash for mysql_protocol_type
source§impl PartialEq for mysql_protocol_type
impl PartialEq for mysql_protocol_type
impl Copy for mysql_protocol_type
impl Eq for mysql_protocol_type
impl StructuralPartialEq for mysql_protocol_type
Auto Trait Implementations§
impl Freeze for mysql_protocol_type
impl RefUnwindSafe for mysql_protocol_type
impl Send for mysql_protocol_type
impl Sync for mysql_protocol_type
impl Unpin for mysql_protocol_type
impl UnwindSafe for mysql_protocol_type
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)