pub struct Collector { /* private fields */ }
Implementations
sourceimpl Collector
impl Collector
pub fn new(events: Vec<Event>) -> Collector
pub fn create() -> Collector
pub fn record<P>(&mut self, p: P) -> Result<(), Error> 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
Auto Trait Implementations
impl RefUnwindSafe for Collector
impl Send for Collector
impl Sync for Collector
impl Unpin for Collector
impl UnwindSafe for Collector
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