pub enum EventBatch<T, E> {
Next(T),
Termination(Termination<E>),
NextAndTermination(T, Termination<E>),
NextBatch(Vec<T>),
NextBatchAndTermination(Vec<T>, Termination<E>),
}Expand description
One atomic batch of events to queue.
Variants§
Next(T)
Termination(Termination<E>)
NextAndTermination(T, Termination<E>)
NextBatch(Vec<T>)
NextBatchAndTermination(Vec<T>, Termination<E>)
Implementations§
Source§impl<T, E> EventBatch<T, E>
impl<T, E> EventBatch<T, E>
Sourcepub fn ends_stream(&self) -> bool
pub fn ends_stream(&self) -> bool
Returns whether the batch carries a termination, after which nothing can be queued.
Trait Implementations§
Source§impl<T, E> Clone for EventBatch<T, E>
impl<T, E> Clone for EventBatch<T, E>
Source§impl<T, E> Debug for EventBatch<T, E>
impl<T, E> Debug for EventBatch<T, E>
impl<T, E> Eq for EventBatch<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for EventBatch<T, E>
impl<T, E> RefUnwindSafe for EventBatch<T, E>
impl<T, E> Send for EventBatch<T, E>
impl<T, E> Sync for EventBatch<T, E>
impl<T, E> Unpin for EventBatch<T, E>
impl<T, E> UnsafeUnpin for EventBatch<T, E>
impl<T, E> UnwindSafe for EventBatch<T, E>
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