Struct mz_environmentd::http::sql::SqlResponse
source · pub struct SqlResponse {
results: Vec<SqlResult>,
}
Expand description
The response to a SqlRequest
.
Fields§
§results: Vec<SqlResult>
The results for each query in the request.
Trait Implementations§
source§impl Debug for SqlResponse
impl Debug for SqlResponse
source§impl<'de> Deserialize<'de> for SqlResponse
impl<'de> Deserialize<'de> for SqlResponse
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 ResultSender for SqlResponse
impl ResultSender for SqlResponse
source§fn add_result<'life0, 'async_trait, C, F>(
&'life0 mut self,
_canceled: C,
res: StatementResult
) -> Pin<Box<dyn Future<Output = Result<Result<(), ()>, Error>> + Send + 'async_trait>>where
C: Fn() -> F + Send + Sync + 'async_trait,
F: Future<Output = ()> + Send + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn add_result<'life0, 'async_trait, C, F>( &'life0 mut self, _canceled: C, res: StatementResult ) -> Pin<Box<dyn Future<Output = Result<Result<(), ()>, Error>> + Send + 'async_trait>>where C: Fn() -> F + Send + Sync + 'async_trait, F: Future<Output = ()> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,
Adds a result to the client.
canceled
is a function that returns a future that resolves if
a cancellation request was issued for this connection. Returns Err if sending to the client
produced an error and the server should disconnect. Returns Ok(Err) if the statement
produced an error and should error the transaction, but remain connected. Returns Ok(Ok(()))
if the statement succeeded.source§fn connection_error(&mut self) -> BoxFuture<'_, Error>
fn connection_error(&mut self) -> BoxFuture<'_, Error>
Returns a future that resolves only when the client connection has gone away.
source§fn allow_subscribe(&self) -> bool
fn allow_subscribe(&self) -> bool
Reports whether the client supports streaming SUBSCRIBE results.
fn await_rows<'life0, 'async_trait, C, F, R>( &'life0 mut self, cancelled: C, f: F ) -> Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'async_trait>>where C: Future<Output = ()> + Send + 'async_trait, F: Future<Output = R> + Send + 'async_trait, R: 'async_trait, Self: 'async_trait, 'life0: 'async_trait,
Auto Trait Implementations§
impl RefUnwindSafe for SqlResponse
impl Send for SqlResponse
impl Sync for SqlResponse
impl Unpin for SqlResponse
impl UnwindSafe for SqlResponse
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> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.