#[non_exhaustive]#[repr(u8)]pub enum MsgKind {
QueryRequest = 16,
ResultBatch = 17,
ResultEnd = 18,
QueryError = 19,
Cancel = 20,
Credit = 21,
ExecDone = 22,
CacheReset = 23,
ServerInfo = 24,
}Expand description
Message kind code (uint8). repr(u8) keeps wire transcoding trivial.
#[non_exhaustive] because the QWP message-kind table is
append-only across protocol revisions.
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.
QueryRequest = 16
Client → Server: initiate cursor with SQL + binds.
ResultBatch = 17
Server → Client: one table block of results.
ResultEnd = 18
Server → Client: successful stream termination.
QueryError = 19
Server → Client: failure at any lifecycle point.
Cancel = 20
Client → Server: request query termination.
Credit = 21
Client → Server: extend byte-credit window.
ExecDone = 22
Server → Client: non-SELECT acknowledgement.
CacheReset = 23
Server → Client: clear connection caches.
ServerInfo = 24
Server → Client: role + cluster identity.
Implementations§
Trait Implementations§
impl Copy for MsgKind
impl Eq for MsgKind
impl StructuralPartialEq for MsgKind
Auto Trait Implementations§
impl Freeze for MsgKind
impl RefUnwindSafe for MsgKind
impl Send for MsgKind
impl Sync for MsgKind
impl Unpin for MsgKind
impl UnsafeUnpin for MsgKind
impl UnwindSafe for MsgKind
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more