pub struct TapBatch {
pub target: String,
pub seq: u64,
pub sampled: NonZeroU32,
pub dropped: u64,
pub messages: Vec<TapMessage>,
/* private fields */
}Expand description
One console.tap.<target> record: one batch, every message in it admitted
at the one divisor sampled.
Fields§
§target: StringThe node or stream the tap is on.
seq: u64One more than this tap’s previous batch, from 1.
sampled: NonZeroU32N in “sampled 1 in N” for every message in this batch.
dropped: u64Messages evicted from the tap’s ring since its previous batch.
messages: Vec<TapMessage>The messages, oldest first.
Implementations§
Trait Implementations§
impl Eq for TapBatch
impl StructuralPartialEq for TapBatch
Auto Trait Implementations§
impl Freeze for TapBatch
impl RefUnwindSafe for TapBatch
impl Send for TapBatch
impl Sync for TapBatch
impl Unpin for TapBatch
impl UnsafeUnpin for TapBatch
impl UnwindSafe for TapBatch
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.