pub struct EventBlock<Q>where
Q: ExtractDeps,{
pub process_id: Uuid,
pub stream_id: Uuid,
pub begin: DualTime,
pub events: Q,
pub end: Option<DualTime>,
pub event_offset: usize,
pub dyn_deps: DynDeps<<Q as ExtractDeps>::DepsQueue>,
}Expand description
Blocks are a batch of events sent as a unit
Fields§
§process_id: Uuid§stream_id: Uuid§begin: DualTime§events: Q§end: Option<DualTime>§event_offset: usize§dyn_deps: DynDeps<<Q as ExtractDeps>::DepsQueue>Dependency records for the dynamic property sets and dynamic strings that events refer
to by id, inserted by log, metrics and thread dispatch.
Implementations§
Source§impl<Q> EventBlock<Q>where
Q: HeterogeneousQueue + ExtractDeps,
impl<Q> EventBlock<Q>where
Q: HeterogeneousQueue + ExtractDeps,
pub fn close(&mut self)
Sourcepub fn close_at(&mut self, end: DualTime)
pub fn close_at(&mut self, end: DualTime)
Close this block with an already-stamped DualTime, so that it can be
the same value used as the replacement block’s begin — making
block[k].end == block[k+1].begin true by construction. Used by the
four dispatch.rs flush paths; close() is retained for standalone
callers (benches/tests) that swap no stream and so have no shared
timestamp to pass.
Trait Implementations§
Source§impl<Q> Debug for EventBlock<Q>
impl<Q> Debug for EventBlock<Q>
Source§impl StreamBlock for EventBlock<ImageMsgQueue>
impl StreamBlock for EventBlock<ImageMsgQueue>
Source§fn encode_bin(&self, process_info: &ProcessInfo) -> Result<Vec<u8>, Error>
fn encode_bin(&self, process_info: &ProcessInfo) -> Result<Vec<u8>, Error>
Encodes the stream block into a binary format. Read more
Source§impl StreamBlock for EventBlock<LogMsgQueue>
impl StreamBlock for EventBlock<LogMsgQueue>
Source§fn encode_bin(&self, process_info: &ProcessInfo) -> Result<Vec<u8>, Error>
fn encode_bin(&self, process_info: &ProcessInfo) -> Result<Vec<u8>, Error>
Encodes the stream block into a binary format. Read more
Source§impl StreamBlock for EventBlock<MetricsMsgQueue>
impl StreamBlock for EventBlock<MetricsMsgQueue>
Source§fn encode_bin(&self, process_info: &ProcessInfo) -> Result<Vec<u8>, Error>
fn encode_bin(&self, process_info: &ProcessInfo) -> Result<Vec<u8>, Error>
Encodes the stream block into a binary format. Read more
Source§impl StreamBlock for EventBlock<ThreadEventQueue>
impl StreamBlock for EventBlock<ThreadEventQueue>
Source§fn encode_bin(&self, process_info: &ProcessInfo) -> Result<Vec<u8>, Error>
fn encode_bin(&self, process_info: &ProcessInfo) -> Result<Vec<u8>, Error>
Encodes the stream block into a binary format. Read more
Source§impl<Q> TracingBlock for EventBlock<Q>where
Q: HeterogeneousQueue + ExtractDeps,
impl<Q> TracingBlock for EventBlock<Q>where
Q: HeterogeneousQueue + ExtractDeps,
type Queue = Q
fn new( buffer_size: usize, process_id: Uuid, stream_id: Uuid, event_offset: usize, ) -> EventBlock<Q>
fn len_bytes(&self) -> usize
fn capacity_bytes(&self) -> usize
fn nb_objects(&self) -> usize
fn object_offset(&self) -> usize
fn events_mut(&mut self) -> &mut <EventBlock<Q> as TracingBlock>::Queue
fn hint_max_obj_size(&self) -> usize
Auto Trait Implementations§
impl<Q> Freeze for EventBlock<Q>
impl<Q> RefUnwindSafe for EventBlock<Q>
impl<Q> Send for EventBlock<Q>
impl<Q> Sync for EventBlock<Q>
impl<Q> Unpin for EventBlock<Q>
impl<Q> UnsafeUnpin for EventBlock<Q>
impl<Q> UnwindSafe for EventBlock<Q>
Blanket Implementations§
impl<T> Allocation for T
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].