pub struct PumpIo<F> {
pub rx: Receiver<F>,
pub out: Sender<Envelope>,
pub source: Arc<str>,
pub backpressure: SharedBackpressure,
pub cancel: CancellationToken,
}Expand description
The channels and handles one run_pump task works with.
F is the frame type of the connector (MdFrame or UdFrame).
Fields§
§rx: Receiver<F>Frames from the stream tasks.
out: Sender<Envelope>Where the envelopes go: the channel the user gave to start.
source: Arc<str>Source label written into every envelope.
backpressure: SharedBackpressureThe per-subscription buffers that hold events until out has room.
cancel: CancellationTokenStops the pump. A child of the connector’s root token.
Auto Trait Implementations§
impl<F> Freeze for PumpIo<F>
impl<F> RefUnwindSafe for PumpIo<F>
impl<F> Send for PumpIo<F>where
F: Send,
impl<F> Sync for PumpIo<F>where
F: Send,
impl<F> Unpin for PumpIo<F>
impl<F> UnsafeUnpin for PumpIo<F>
impl<F> UnwindSafe for PumpIo<F>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].