pub struct ZeroCopyEventStream { /* private fields */ }Expand description
Zero-copy event streaming buffer
Implementations§
Source§impl ZeroCopyEventStream
impl ZeroCopyEventStream
Sourcepub fn push_events(&mut self, new_events: Vec<EventMessage>)
pub fn push_events(&mut self, new_events: Vec<EventMessage>)
Push events efficiently by moving data
Sourcepub fn drain_batch(&mut self, size: usize) -> Vec<EventMessage>
pub fn drain_batch(&mut self, size: usize) -> Vec<EventMessage>
Drain a batch of events efficiently
Sourcepub fn peek_events(&self, count: usize) -> Vec<&EventMessage>
pub fn peek_events(&self, count: usize) -> Vec<&EventMessage>
Get events without removing them
Auto Trait Implementations§
impl Freeze for ZeroCopyEventStream
impl RefUnwindSafe for ZeroCopyEventStream
impl Send for ZeroCopyEventStream
impl Sync for ZeroCopyEventStream
impl Unpin for ZeroCopyEventStream
impl UnwindSafe for ZeroCopyEventStream
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