Struct coordtest::InterceptingDataflowClient[][src]

pub(crate) struct InterceptingDataflowClient<C> {
    pub(crate) inner: Arc<TokioMutex<C>>,
    pub(crate) feedback_tx: UnboundedSender<Response>,
    pub(crate) feedback_rx: Arc<TokioMutex<UnboundedReceiver<Response>>>,
}
Expand description

A dataflow_types::client::Client implementation that intercepts responses from the dataflow server.

The implementation of the send method is unchanged. The implementation of recv, however, only presents the responses that have been explicitly forwarded via forward_response. To access the actual responses from the underlying dataflow client, call try_intercepting_recv.

Fields

inner: Arc<TokioMutex<C>>feedback_tx: UnboundedSender<Response>feedback_rx: Arc<TokioMutex<UnboundedReceiver<Response>>>

Implementations

Creates a new intercepting dataflow client that wraps the provided dataflow client.

Receives a response from the underlying dataflow client, if one is immediately available.

Makes the specified response available via the normal recv method.

Trait Implementations

Sends a command to the dataflow server.

Receives the next response from the dataflow server. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more