pub struct WrappedBackgroundReceiver<E, P, B, R, V>where
E: Spawner,
P: PublicKey,
B: Blocker<PublicKey = P>,
R: Receiver<PublicKey = P>,
V: Codec + Send,{ /* private fields */ }Implementations§
Source§impl<E, P, B, R, V> WrappedBackgroundReceiver<E, P, B, R, V>
impl<E, P, B, R, V> WrappedBackgroundReceiver<E, P, B, R, V>
Sourcepub fn new(
context: E,
receiver: R,
codec_config: V::Cfg,
blocker: B,
channel_capacity: NonZeroUsize,
strategy: &impl Strategy,
) -> (Self, BackgroundReceiver<P, V>)
pub fn new( context: E, receiver: R, codec_config: V::Cfg, blocker: B, channel_capacity: NonZeroUsize, strategy: &impl Strategy, ) -> (Self, BackgroundReceiver<P, V>)
Create a new WrappedBackgroundReceiver.
channel_capacity controls the size of the internal channel to the consumer.
The strategy’s parallelism_hint bounds the
number of in-flight decode tasks.
Auto Trait Implementations§
impl<E, P, B, R, V> Freeze for WrappedBackgroundReceiver<E, P, B, R, V>
impl<E, P, B, R, V> !RefUnwindSafe for WrappedBackgroundReceiver<E, P, B, R, V>
impl<E, P, B, R, V> Send for WrappedBackgroundReceiver<E, P, B, R, V>
impl<E, P, B, R, V> Sync for WrappedBackgroundReceiver<E, P, B, R, V>
impl<E, P, B, R, V> Unpin for WrappedBackgroundReceiver<E, P, B, R, V>
impl<E, P, B, R, V> UnsafeUnpin for WrappedBackgroundReceiver<E, P, B, R, V>
impl<E, P, B, R, V> !UnwindSafe for WrappedBackgroundReceiver<E, P, B, R, V>
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> 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 more