Struct mz_environmentd::http::SqlResponse
source · 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>(
&'life0 mut self,
res: StatementResult
) -> Pin<Box<dyn Future<Output = Result<Result<(), ()>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_result<'life0, 'async_trait>(
&'life0 mut self,
res: StatementResult
) -> Pin<Box<dyn Future<Output = Result<Result<(), ()>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Adds a result to the client. 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 await_rows<'life0, 'async_trait, F, R>(
&'life0 mut self,
f: F
) -> Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'async_trait>>where
F: Future<Output = R> + Send + 'async_trait,
R: 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn await_rows<'life0, 'async_trait, F, R>(
&'life0 mut self,
f: F
) -> Pin<Box<dyn Future<Output = Result<R, Error>> + Send + 'async_trait>>where
F: Future<Output = R> + Send + 'async_trait,
R: 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Awaits a future while also able to check the status of the client
connection. Should return an error if 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.
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> 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
.