pub enum Event<T, C> {
Progress(Vec<(T, i64)>),
Messages(T, C),
}
Expand description
Data and progress events of the captured stream.
Variants§
Progress(Vec<(T, i64)>)
Progress received via push_external_progress
.
Messages(T, C)
Messages received via the data stream.
Trait Implementations§
source§impl<T, C> Abomonation for Event<T, C>
impl<T, C> Abomonation for Event<T, C>
source§impl<'de, T, C> Deserialize<'de> for Event<T, C>where
T: Deserialize<'de>,
C: Deserialize<'de>,
impl<'de, T, C> Deserialize<'de> for Event<T, C>where
T: Deserialize<'de>,
C: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: Ord, C: Ord> Ord for Event<T, C>
impl<T: Ord, C: Ord> Ord for Event<T, C>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq, C: PartialEq> PartialEq for Event<T, C>
impl<T: PartialEq, C: PartialEq> PartialEq for Event<T, C>
source§impl<T: PartialOrd, C: PartialOrd> PartialOrd for Event<T, C>
impl<T: PartialOrd, C: PartialOrd> PartialOrd for Event<T, C>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Eq, C: Eq> Eq for Event<T, C>
impl<T, C> StructuralPartialEq for Event<T, C>
Auto Trait Implementations§
impl<T, C> Freeze for Event<T, C>
impl<T, C> RefUnwindSafe for Event<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for Event<T, C>
impl<T, C> Sync for Event<T, C>
impl<T, C> Unpin for Event<T, C>
impl<T, C> UnwindSafe for Event<T, C>where
T: UnwindSafe,
C: UnwindSafe,
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
source§impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
source§fn copy_onto(
self,
target: &mut ConsecutiveOffsetPairs<R, O>
) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
fn copy_onto( self, target: &mut ConsecutiveOffsetPairs<R, O> ) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
Copy self into the target container, returning an index that allows to
look up the corresponding read item.