#[repr(u64)]pub enum ServerCode {
Show 15 variants
Hello = 0,
Data = 1,
Exception = 2,
Progress = 3,
Pong = 4,
EndOfStream = 5,
ProfileInfo = 6,
Totals = 7,
Extremes = 8,
TablesStatusResponse = 9,
Log = 10,
TableColumns = 11,
PartUUIDs = 12,
ReadTaskRequest = 13,
ProfileEvents = 14,
}Expand description
Types of packets received from server
Variants§
Hello = 0
Server handshake response containing name, version, and revision.
Data = 1
Block of data, may be compressed.
Exception = 2
Exception that occurred during query execution.
Progress = 3
Query execution progress: rows and bytes read.
Pong = 4
Response to a client Ping request.
EndOfStream = 5
Signals that all packets for the current operation have been sent.
ProfileInfo = 6
Profiling data for query execution.
Totals = 7
Block of totals, may be compressed.
Extremes = 8
Block of extremes (mins and maxs), may be compressed.
TablesStatusResponse = 9
Response to a TableStatus request.
Log = 10
Query execution log (always uncompressed).
TableColumns = 11
Columns description for default values calculation.
PartUUIDs = 12
List of unique part UUIDs.
ReadTaskRequest = 13
Request for the next distributed read task.
ProfileEvents = 14
Profile events from the server (always uncompressed).
Trait Implementations§
Source§impl Clone for ServerCode
impl Clone for ServerCode
Source§fn clone(&self) -> ServerCode
fn clone(&self) -> ServerCode
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 ServerCode
impl Debug for ServerCode
Source§impl PartialEq for ServerCode
impl PartialEq for ServerCode
Source§impl TryFrom<u64> for ServerCode
impl TryFrom<u64> for ServerCode
impl Copy for ServerCode
impl Eq for ServerCode
impl StructuralPartialEq for ServerCode
Auto Trait Implementations§
impl Freeze for ServerCode
impl RefUnwindSafe for ServerCode
impl Send for ServerCode
impl Sync for ServerCode
impl Unpin for ServerCode
impl UnwindSafe for ServerCode
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