pub struct LapinTestSubscriber { /* private fields */ }Expand description
In-process subscriber on one queue name.
Yielded messages settle like the real transport: ack finalizes, nack(true) re-enqueues to
this same subscription, nack(false) drops.
Implementations§
Trait Implementations§
Source§impl Debug for LapinTestSubscriber
impl Debug for LapinTestSubscriber
Source§impl Drop for LapinTestSubscriber
impl Drop for LapinTestSubscriber
Source§impl Subscriber for LapinTestSubscriber
impl Subscriber for LapinTestSubscriber
Source§fn stream(
&mut self,
) -> impl Stream<Item = Result<Self::Message, Self::Error>> + Send + '_
fn stream( &mut self, ) -> impl Stream<Item = Result<Self::Message, Self::Error>> + Send + '_
Streams injected deliveries; never yields an error.
§Cancel safety
Cancel safe and re-enterable: the receiver is polled in place, so dropping the returned
stream loses nothing and stream can be called again.
Source§type Message = LapinTestMessage
type Message = LapinTestMessage
The message type yielded by this subscriber.
Auto Trait Implementations§
impl Freeze for LapinTestSubscriber
impl RefUnwindSafe for LapinTestSubscriber
impl Send for LapinTestSubscriber
impl Sync for LapinTestSubscriber
impl Unpin for LapinTestSubscriber
impl UnsafeUnpin for LapinTestSubscriber
impl UnwindSafe for LapinTestSubscriber
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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