pub struct CollectSink(/* private fields */);Expand description
An InboundSink that keeps every event, for adapter tests.
Implementations§
Source§impl CollectSink
impl CollectSink
Sourcepub fn events(&self) -> Vec<InboundEvent>
pub fn events(&self) -> Vec<InboundEvent>
Events delivered so far.
Sourcepub async fn first(&self) -> InboundEvent
pub async fn first(&self) -> InboundEvent
Trait Implementations§
Source§impl Debug for CollectSink
impl Debug for CollectSink
Source§impl Default for CollectSink
impl Default for CollectSink
Source§impl InboundSink for CollectSink
impl InboundSink for CollectSink
Auto Trait Implementations§
impl !Freeze for CollectSink
impl RefUnwindSafe for CollectSink
impl Send for CollectSink
impl Sync for CollectSink
impl Unpin for CollectSink
impl UnsafeUnpin for CollectSink
impl UnwindSafe for CollectSink
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