pub struct JoinedListener<A, B> { /* private fields */ }Expand description
JoinedListener is a listener that can join two listeners.
Implementations§
source§impl<A, B> JoinedListener<A, B>
impl<A, B> JoinedListener<A, B>
sourcepub fn new(a: A, b: B) -> JoinedListener<A, B>
pub fn new(a: A, b: B) -> JoinedListener<A, B>
Create a new JoinedListener.
Trait Implementations§
source§impl<A, B> Listener for JoinedListener<A, B>
impl<A, B> Listener for JoinedListener<A, B>
source§type Acceptor = JoinedAcceptor<<A as Listener>::Acceptor, <B as Listener>::Acceptor>
type Acceptor = JoinedAcceptor<<A as Listener>::Acceptor, <B as Listener>::Acceptor>
Acceptor type.
source§async fn try_bind(
self,
) -> Result<<JoinedListener<A, B> as Listener>::Acceptor, Error>
async fn try_bind( self, ) -> Result<<JoinedListener<A, B> as Listener>::Acceptor, Error>
Bind and returns acceptor.
impl<'pin, A, B> Unpin for JoinedListener<A, B>where
__JoinedListener<'pin, A, B>: Unpin,
Auto Trait Implementations§
impl<A, B> Freeze for JoinedListener<A, B>
impl<A, B> RefUnwindSafe for JoinedListener<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for JoinedListener<A, B>
impl<A, B> Sync for JoinedListener<A, B>
impl<A, B> UnwindSafe for JoinedListener<A, B>where
A: UnwindSafe,
B: 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
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> FutureTraceExt for Twhere
T: FutureExt,
impl<T> FutureTraceExt for Twhere
T: FutureExt,
source§fn with_current_context_span(self, otel_span: Span) -> WithContext<Self> ⓘ
fn with_current_context_span(self, otel_span: Span) -> WithContext<Self> ⓘ
Pass the span of opentelemetry to the current context of tracing.
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