pub struct TaggedEvent<E> {
pub source_idx: u16,
pub event: E,
}Expand description
An event annotated with the source it came from within an
AsyncMultiCapture.
source_idx is an index into the multi-capture’s source list
(0..len()).
Map it back to a human-readable label via
MultiFlowStream::label (or the sibling methods).
Fields§
§source_idx: u16Index of the source within the multi-capture.
event: EThe underlying event payload.
Trait Implementations§
Source§impl<E: Clone> Clone for TaggedEvent<E>
impl<E: Clone> Clone for TaggedEvent<E>
Source§fn clone(&self) -> TaggedEvent<E>
fn clone(&self) -> TaggedEvent<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<E> Freeze for TaggedEvent<E>where
E: Freeze,
impl<E> RefUnwindSafe for TaggedEvent<E>where
E: RefUnwindSafe,
impl<E> Send for TaggedEvent<E>where
E: Send,
impl<E> Sync for TaggedEvent<E>where
E: Sync,
impl<E> Unpin for TaggedEvent<E>where
E: Unpin,
impl<E> UnsafeUnpin for TaggedEvent<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for TaggedEvent<E>where
E: 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