Enum mz_compute_client::protocol::response::PeekResponse
source · pub enum PeekResponse {
Rows(Vec<(Row, NonZeroUsize)>),
Error(String),
Canceled,
}
Expand description
The response from a Peek
.
Note that each Peek
expects to generate exactly one PeekResponse
, i.e.
we expect a 1:1 contract between Peek
and PeekResponse
.
Variants§
Rows(Vec<(Row, NonZeroUsize)>)
Returned rows of a successful peek.
Error(String)
Error of an unsuccessful peek.
Canceled
The peek was canceled.
Implementations§
source§impl PeekResponse
impl PeekResponse
pub fn unwrap_rows(self) -> Vec<(Row, NonZeroUsize)> ⓘ
Trait Implementations§
source§impl Arbitrary for PeekResponse
impl Arbitrary for PeekResponse
§type Strategy = Union<BoxedStrategy<PeekResponse>>
type Strategy = Union<BoxedStrategy<PeekResponse>>
The type of
Strategy
used to generate values of type Self
.§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.source§fn arbitrary_with(_: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_: Self::Parameters) -> Self::Strategy
source§impl Clone for PeekResponse
impl Clone for PeekResponse
source§fn clone(&self) -> PeekResponse
fn clone(&self) -> PeekResponse
Returns a copy 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 PeekResponse
impl Debug for PeekResponse
source§impl<'de> Deserialize<'de> for PeekResponse
impl<'de> Deserialize<'de> for PeekResponse
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<PeekResponse> for PeekResponse
impl PartialEq<PeekResponse> for PeekResponse
source§fn eq(&self, other: &PeekResponse) -> bool
fn eq(&self, other: &PeekResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RustType<ProtoPeekResponse> for PeekResponse
impl RustType<ProtoPeekResponse> for PeekResponse
source§fn into_proto(&self) -> ProtoPeekResponse
fn into_proto(&self) -> ProtoPeekResponse
Convert a
Self
into a Proto
value.source§fn from_proto(proto: ProtoPeekResponse) -> Result<Self, TryFromProtoError>
fn from_proto(proto: ProtoPeekResponse) -> Result<Self, TryFromProtoError>
source§impl Serialize for PeekResponse
impl Serialize for PeekResponse
impl StructuralPartialEq for PeekResponse
Auto Trait Implementations§
impl RefUnwindSafe for PeekResponse
impl Send for PeekResponse
impl Sync for PeekResponse
impl Unpin for PeekResponse
impl UnwindSafe for PeekResponse
Blanket Implementations§
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
.