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<'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: PartialOrd, C: PartialOrd> PartialOrd for Event<T, C>
impl<T: PartialOrd, C: PartialOrd> PartialOrd for Event<T, C>
impl<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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)