pub enum EventCore<T, D> {
Progress(Vec<(T, i64)>),
Messages(T, D),
}
Expand description
Data and progress events of the captured stream.
Variants§
Progress(Vec<(T, i64)>)
Progress received via push_external_progress
.
Messages(T, D)
Messages received via the data stream.
Trait Implementations§
source§impl<T, D> Abomonation for EventCore<T, D>where
Vec<(T, i64)>: Abomonation,
T: Abomonation,
D: Abomonation,
impl<T, D> Abomonation for EventCore<T, D>where Vec<(T, i64)>: Abomonation, T: Abomonation, D: Abomonation,
source§impl<'de, T, D> Deserialize<'de> for EventCore<T, D>where
T: Deserialize<'de>,
D: Deserialize<'de>,
impl<'de, T, D> Deserialize<'de> for EventCore<T, D>where T: Deserialize<'de>, D: 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, D: Ord> Ord for EventCore<T, D>
impl<T: Ord, D: Ord> Ord for EventCore<T, D>
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, D: PartialEq> PartialEq<EventCore<T, D>> for EventCore<T, D>
impl<T: PartialEq, D: PartialEq> PartialEq<EventCore<T, D>> for EventCore<T, D>
source§impl<T: PartialOrd, D: PartialOrd> PartialOrd<EventCore<T, D>> for EventCore<T, D>
impl<T: PartialOrd, D: PartialOrd> PartialOrd<EventCore<T, D>> for EventCore<T, D>
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, D: Eq> Eq for EventCore<T, D>
impl<T, D> StructuralEq for EventCore<T, D>
impl<T, D> StructuralPartialEq for EventCore<T, D>
Auto Trait Implementations§
impl<T, D> RefUnwindSafe for EventCore<T, D>where D: RefUnwindSafe, T: RefUnwindSafe,
impl<T, D> Send for EventCore<T, D>where D: Send, T: Send,
impl<T, D> Sync for EventCore<T, D>where D: Sync, T: Sync,
impl<T, D> Unpin for EventCore<T, D>where D: Unpin, T: Unpin,
impl<T, D> UnwindSafe for EventCore<T, D>where D: UnwindSafe, T: 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