pub enum PacketType {
Ok,
Error,
Eof,
LocalInfile,
Data,
}Expand description
Server response packet types.
Variants§
Ok
OK packet (0x00)
Error
Error packet (0xFF)
Eof
EOF packet (0xFE) - deprecated in CLIENT_DEPRECATE_EOF
LocalInfile
Local infile request (0xFB)
Data
Data packet (result set row, etc.)
Implementations§
Source§impl PacketType
impl PacketType
Sourcepub fn from_first_byte(byte: u8, payload_len: u32) -> Self
pub fn from_first_byte(byte: u8, payload_len: u32) -> Self
Detect packet type from the first byte of payload.
Trait Implementations§
Source§impl Clone for PacketType
impl Clone for PacketType
Source§fn clone(&self) -> PacketType
fn clone(&self) -> PacketType
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 PacketType
impl Debug for PacketType
Source§impl PartialEq for PacketType
impl PartialEq for PacketType
impl Copy for PacketType
impl Eq for PacketType
impl StructuralPartialEq for PacketType
Auto Trait Implementations§
impl Freeze for PacketType
impl RefUnwindSafe for PacketType
impl Send for PacketType
impl Sync for PacketType
impl Unpin for PacketType
impl UnwindSafe for PacketType
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).