Struct core_lib::events::EventCollector
source · [−]pub struct EventCollector { /* private fields */ }
Implementations
sourceimpl EventCollector
impl EventCollector
pub fn new(events: Vec<Event>) -> EventCollector
pub fn create() -> EventCollector
pub fn record<P>(&mut self, p: P) -> Result<()> where
P: Publishable,
pub fn all(&self) -> &[Event]
pub fn drain(&mut self) -> Vec<Event>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Trait Implementations
sourceimpl Clone for EventCollector
impl Clone for EventCollector
sourcefn clone(&self) -> EventCollector
fn clone(&self) -> EventCollector
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for EventCollector
impl Send for EventCollector
impl Sync for EventCollector
impl Unpin for EventCollector
impl UnwindSafe for EventCollector
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more