TracingBlock

Trait TracingBlock 

Source
pub trait TracingBlock {
    type Queue: ExtractDeps;

    // Required methods
    fn new(
        buffer_size: usize,
        process_id: Uuid,
        stream_id: Uuid,
        object_offset: usize,
    ) -> Self;
    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 Self::Queue;

    // Provided method
    fn hint_max_obj_size(&self) -> usize { ... }
}
Expand description

Event blocks must adhere to TracingBlock in order to be managed by the stream

Required Associated Types§

Required Methods§

Source

fn new( buffer_size: usize, process_id: Uuid, stream_id: Uuid, object_offset: usize, ) -> Self

Source

fn len_bytes(&self) -> usize

Source

fn capacity_bytes(&self) -> usize

Source

fn nb_objects(&self) -> usize

Source

fn object_offset(&self) -> usize

Source

fn events_mut(&mut self) -> &mut Self::Queue

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§