Trait sodoken::AsBufReadSized[][src]

pub trait AsBufReadSized<const N: usize>: 'static + AsBufRead + Debug + Send + Sync {
    fn read_lock_sized(&self) -> ReadGuardSized<'_, N>;
fn to_read_unsized(&self) -> BufRead; }
Expand description

A sized readable buffer that may or may not be mem_locked.

Required methods

Obtain read access to the underlying buffer.

Convert to an unsized BufRead instance without cloning internal data and without changing memory locking strategy.

Implementations on Foreign Types

Implementors