pub trait AsBufWrite: AsBufRead {
    fn write_lock(&self) -> WriteGuard<'_>;
    fn into_read(self: Arc<Self>) -> BufRead;
    fn into_extend(self: Arc<Self>) -> BufExtend;
}
Expand description

A writable buffer that may or may not be mem_locked.

Required Methods§

Obtain write access to the underlying buffer.

Downgrade this to a read-only reference without cloning internal data and without changing memory locking strategy.

Transform this buffer into an extendable type.

Implementors§