Skip to main content

BufferMode

Trait BufferMode 

pub trait BufferMode:
    Sealed
    + Send
    + 'static {
    const IS_DISK: bool;
}
Available on crate feature dial9 only.
Expand description

Marker trait for SegmentWriter’s backend mode. Sealed: only Disk and Memory implement it.

Required Associated Constants§

const IS_DISK: bool

Whether the writer mode is disk-backed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl BufferMode for Disk

§

const IS_DISK: bool = true

§

impl BufferMode for Memory

§

const IS_DISK: bool = false