Struct mz_adapter::subscribe::PendingSubscribe
source · pub struct PendingSubscribe {
pub session_type: &'static str,
pub channel: UnboundedSender<PeekResponseUnary>,
pub emit_progress: bool,
pub arity: usize,
}
Expand description
A description of a pending subscribe from coord’s perspective
Fields§
§session_type: &'static str
The type of the session that created the subscribe.
channel: UnboundedSender<PeekResponseUnary>
Channel to send responses to the client
The responses have the form PeekResponseUnary
but should perhaps become TailResponse
.
emit_progress: bool
Whether progress information should be emitted
arity: usize
Number of columns in the output
Implementations§
source§impl PendingSubscribe
impl PendingSubscribe
sourcepub(crate) fn process_response(&mut self, response: SubscribeResponse) -> bool
pub(crate) fn process_response(&mut self, response: SubscribeResponse) -> bool
Process a subscribe response
Returns true
if the sink should be removed.
Auto Trait Implementations§
impl !RefUnwindSafe for PendingSubscribe
impl Send for PendingSubscribe
impl Sync for PendingSubscribe
impl Unpin for PendingSubscribe
impl !UnwindSafe for PendingSubscribe
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
.