pub struct RedisTestSubscriber { /* private fields */ }Expand description
Subscriber returned by crate::testing::RedisTestBroker::subscribe.
Trait Implementations§
Source§impl BatchSubscriber for RedisTestSubscriber
impl BatchSubscriber for RedisTestSubscriber
Source§fn batches(
&mut self,
) -> impl Stream<Item = Result<Self::Batch, Self::Error>> + Send + '_
fn batches( &mut self, ) -> impl Stream<Item = Result<Self::Batch, Self::Error>> + Send + '_
Drains whatever is already buffered in the subscriber’s channel (at least one, at most
[TEST_BATCH_LIMIT] messages). Blocks until the first message arrives.
Source§type Batch = Vec<RedisTestMessage>
type Batch = Vec<RedisTestMessage>
Container yielded by
batches. Implementations choose between Vec, custom
iterators, or anything else that yields the underlying Subscriber::Message.Source§impl Debug for RedisTestSubscriber
impl Debug for RedisTestSubscriber
Source§impl Drop for RedisTestSubscriber
impl Drop for RedisTestSubscriber
Source§impl Subscriber for RedisTestSubscriber
impl Subscriber for RedisTestSubscriber
Source§type Message = RedisTestMessage
type Message = RedisTestMessage
The message type yielded by this subscriber.
Source§type Error = RedisError
type Error = RedisError
The error type yielded by the stream when delivery fails.
Auto Trait Implementations§
impl Freeze for RedisTestSubscriber
impl RefUnwindSafe for RedisTestSubscriber
impl Send for RedisTestSubscriber
impl Sync for RedisTestSubscriber
impl Unpin for RedisTestSubscriber
impl UnsafeUnpin for RedisTestSubscriber
impl UnwindSafe for RedisTestSubscriber
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> 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