vector_buffers

Trait InMemoryBufferable

source
pub trait InMemoryBufferable:
    AddBatchNotifier
    + ByteSizeOf
    + EventCount
    + Debug
    + Send
    + Sync
    + Unpin
    + Sized
    + 'static { }
Expand description

An item that can be buffered in memory.

This supertrait serves as the base trait for any item that can be pushed into a memory buffer. It is a relaxed version of Bufferable that allows for items that are not Encodable (e.g., Instant), which is an unnecessary constraint for memory buffers.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> InMemoryBufferable for T
where T: AddBatchNotifier + ByteSizeOf + EventCount + Debug + Send + Sync + Unpin + Sized + 'static,