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> Columnar for Event<T, C>
impl<T, C> Columnar for Event<T, C>
§type Ref<'a> = EventReference<<Vec<(T, i64)> as Columnar>::Ref<'a>, <(T, C) as Columnar>::Ref<'a>>
where
Self: 'a,
Vec<(T, i64)>: 'a,
(T, C): 'a
type Ref<'a> = EventReference<<Vec<(T, i64)> as Columnar>::Ref<'a>, <(T, C) as Columnar>::Ref<'a>> where Self: 'a, Vec<(T, i64)>: 'a, (T, C): 'a
For each lifetime, a reference with that lifetime. Read more
source§fn copy_from<'a>(&mut self, other: Self::Ref<'a>)
fn copy_from<'a>(&mut self, other: Self::Ref<'a>)
Repopulates
self
from a reference. Read moresource§fn into_owned<'a>(other: Self::Ref<'a>) -> Self
fn into_owned<'a>(other: Self::Ref<'a>) -> Self
Produce an instance of
Self
from Self::Ref<'a>
.§type Container = EventContainer<<Vec<(T, i64)> as Columnar>::Container, <(T, C) as Columnar>::Container>
type Container = EventContainer<<Vec<(T, i64)> as Columnar>::Container, <(T, C) as Columnar>::Container>
The type that stores the columnar representation. Read more
source§fn as_columns<'a, I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = &'a Self>,
Self: 'a,
fn as_columns<'a, I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = &'a Self>,
Self: 'a,
Converts a sequence of the references to the type into columnar form.
source§fn into_columns<I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = Self>,
Self: Sized,
fn into_columns<I>(selves: I) -> Self::Containerwhere
I: IntoIterator<Item = Self>,
Self: Sized,
Converts a sequence of the type into columnar form. Read more
source§impl<T, C> Container<Event<T, C>> for EventContainer<<Vec<(T, i64)> as Columnar>::Container, <(T, C) as Columnar>::Container>
impl<T, C> Container<Event<T, C>> for EventContainer<<Vec<(T, i64)> as Columnar>::Container, <(T, C) as Columnar>::Container>
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>
source§impl<'columnar, T, C, C0, C1> Push<&'columnar Event<T, C>> for EventContainer<C0, C1>
impl<'columnar, T, C, C0, C1> Push<&'columnar Event<T, C>> for EventContainer<C0, C1>
source§impl<T, C, C0, C1> Push<Event<T, C>> for EventContainer<C0, C1>
impl<T, C, C0, C1> Push<Event<T, C>> for EventContainer<C0, C1>
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
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.