Trait sodoken::buffer::AsBufReadSized [−][src]
pub trait AsBufReadSized<const N: usize>: 'static + AsBufRead + Debug + Send + Sync {
fn read_lock_sized(&self) -> ReadGuardSized<'_, N>;
fn into_read_unsized(self: Arc<Self>) -> BufRead;
}
Expand description
A sized readable buffer that may or may not be mem_locked.
Required methods
fn read_lock_sized(&self) -> ReadGuardSized<'_, N>
fn read_lock_sized(&self) -> ReadGuardSized<'_, N>
Obtain read access to the underlying buffer.
fn into_read_unsized(self: Arc<Self>) -> BufRead
fn into_read_unsized(self: Arc<Self>) -> BufRead
Convert to an unsized BufRead instance without cloning internal data and without changing memory locking strategy.