pub struct VecEventSink { /* private fields */ }Expand description
In-memory event sink used by tests and buffered callers.
Implementations§
Source§impl VecEventSink
impl VecEventSink
Sourcepub fn into_events(self) -> Vec<ModelEvent>
pub fn into_events(self) -> Vec<ModelEvent>
Consumes the sink and returns all collected events.
Sourcepub fn events(&self) -> &[ModelEvent]
pub fn events(&self) -> &[ModelEvent]
Borrows the collected events.
Trait Implementations§
Source§impl Clone for VecEventSink
impl Clone for VecEventSink
Source§fn clone(&self) -> VecEventSink
fn clone(&self) -> VecEventSink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VecEventSink
impl Debug for VecEventSink
Source§impl Default for VecEventSink
impl Default for VecEventSink
Source§fn default() -> VecEventSink
fn default() -> VecEventSink
Returns the “default value” for a type. Read more
Source§impl ModelEventSink for VecEventSink
impl ModelEventSink for VecEventSink
Source§impl PartialEq for VecEventSink
impl PartialEq for VecEventSink
Source§fn eq(&self, other: &VecEventSink) -> bool
fn eq(&self, other: &VecEventSink) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VecEventSink
Auto Trait Implementations§
impl Freeze for VecEventSink
impl RefUnwindSafe for VecEventSink
impl Send for VecEventSink
impl Sync for VecEventSink
impl Unpin for VecEventSink
impl UnsafeUnpin for VecEventSink
impl UnwindSafe for VecEventSink
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