#[non_exhaustive]pub enum MeshDbResponse {
Batch {
call_id: u64,
batch: ResultBatch,
},
End {
call_id: u64,
},
Error {
call_id: u64,
error: MeshError,
},
}Expand description
Executor → caller streaming response.
Per call_id, the executor emits zero or more
Batch messages followed by exactly one terminal
(End or Error) — unless the terminal batch is
coalesced via ResultBatch::last.
#[non_exhaustive] so phases C–F can add variants
(e.g. a Progress heartbeat for long-running queries).
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.
Batch
One chunk of rows. May be the last (see the final
field on ResultBatch).
End
Clean end of the response stream.
Error
Terminal error. Carries the full MeshError so the
caller can decide whether to resume (via the
continuation token in PartialResult) or fail.
Trait Implementations§
Source§impl Clone for MeshDbResponse
impl Clone for MeshDbResponse
Source§fn clone(&self) -> MeshDbResponse
fn clone(&self) -> MeshDbResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MeshDbResponse
impl Debug for MeshDbResponse
Source§impl<'de> Deserialize<'de> for MeshDbResponse
impl<'de> Deserialize<'de> for MeshDbResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MeshDbResponse
impl PartialEq for MeshDbResponse
Source§fn eq(&self, other: &MeshDbResponse) -> bool
fn eq(&self, other: &MeshDbResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MeshDbResponse
impl Serialize for MeshDbResponse
impl StructuralPartialEq for MeshDbResponse
Auto Trait Implementations§
impl Freeze for MeshDbResponse
impl RefUnwindSafe for MeshDbResponse
impl Send for MeshDbResponse
impl Sync for MeshDbResponse
impl Unpin for MeshDbResponse
impl UnsafeUnpin for MeshDbResponse
impl UnwindSafe for MeshDbResponse
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