#[repr(u64)]pub enum ClientCode {
Hello = 0,
Query = 1,
Data = 2,
Cancel = 3,
Ping = 4,
}Expand description
Types of packets sent by client
Variants§
Hello = 0
Client handshake containing name, version, and default database.
Query = 1
Query packet with query id, settings, stage, compression, and query text.
Data = 2
Data block (e.g. INSERT data), may be compressed.
Cancel = 3
Cancel the currently running query.
Ping = 4
Ping the server to check the connection is alive.
Trait Implementations§
Source§impl Clone for ClientCode
impl Clone for ClientCode
Source§fn clone(&self) -> ClientCode
fn clone(&self) -> ClientCode
Returns a duplicate 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 ClientCode
impl Debug for ClientCode
Source§impl PartialEq for ClientCode
impl PartialEq for ClientCode
impl Copy for ClientCode
impl Eq for ClientCode
impl StructuralPartialEq for ClientCode
Auto Trait Implementations§
impl Freeze for ClientCode
impl RefUnwindSafe for ClientCode
impl Send for ClientCode
impl Sync for ClientCode
impl Unpin for ClientCode
impl UnwindSafe for ClientCode
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