pub struct PublishStack<Head, Tail> { /* private fields */ }Expand description
Prepends a PublishLayer Head to a PublishPipeline Tail. Built by
RustStream::publish_layer; you rarely name it directly.
Trait Implementations§
impl<Head: Copy, Tail: Copy> Copy for PublishStack<Head, Tail>
Source§impl<W, Head: PublishLayer, Tail: PublishPipeline> OutPipeline<W> for PublishStack<Head, Tail>
impl<W, Head: PublishLayer, Tail: PublishPipeline> OutPipeline<W> for PublishStack<Head, Tail>
Source§type Error<E: StdError + Send + Sync + 'static> = PipelinePublishError
type Error<E: StdError + Send + Sync + 'static> = PipelinePublishError
The error a publish through this path reports, over the leaf publisher’s own error
E: the leaf’s error itself when nothing runs, a PipelinePublishError once the app’s
middleware does.Source§fn from_publish_error<E: StdError + Send + Sync + 'static>(
err: E,
) -> PipelinePublishError
fn from_publish_error<E: StdError + Send + Sync + 'static>( err: E, ) -> PipelinePublishError
Reports a leaf-publisher error that did not travel this path (a transaction call, a
request round trip) in the entry’s error type.
Source§impl<Head: PublishLayer, Tail: PublishPipeline> PublishPipeline for PublishStack<Head, Tail>
impl<Head: PublishLayer, Tail: PublishPipeline> PublishPipeline for PublishStack<Head, Tail>
Source§fn run<'a, P: Publisher>(
&'a self,
out: &'a mut Outgoing<'a>,
send: &'a P,
options: Option<&'a P::Options>,
) -> impl Future<Output = Result<(), Box<dyn StdError + Send + Sync>>> + Send + 'a
fn run<'a, P: Publisher>( &'a self, out: &'a mut Outgoing<'a>, send: &'a P, options: Option<&'a P::Options>, ) -> impl Future<Output = Result<(), Box<dyn StdError + Send + Sync>>> + Send + 'a
Runs
out through the remaining middleware, then sends it via send with the broker’s
per-message settings the call site adjusted (None on a reply, which has no call site).Auto Trait Implementations§
impl<Head, Tail> Freeze for PublishStack<Head, Tail>
impl<Head, Tail> RefUnwindSafe for PublishStack<Head, Tail>where
Head: RefUnwindSafe,
Tail: RefUnwindSafe,
impl<Head, Tail> Send for PublishStack<Head, Tail>
impl<Head, Tail> Sync for PublishStack<Head, Tail>
impl<Head, Tail> Unpin for PublishStack<Head, Tail>
impl<Head, Tail> UnsafeUnpin for PublishStack<Head, Tail>where
Head: UnsafeUnpin,
Tail: UnsafeUnpin,
impl<Head, Tail> UnwindSafe for PublishStack<Head, Tail>where
Head: UnwindSafe,
Tail: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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