pub trait AsBufWriteSized<const N: usize>: AsBufReadSized<N> + AsBufWrite {
    // Required methods
    fn write_lock_sized(&self) -> WriteGuardSized<'_, N>;
    fn into_read_sized(self: Arc<Self>) -> BufReadSized<N>;
    fn into_write_unsized(self: Arc<Self>) -> BufWrite;
}
Expand description

A writable buffer that may or may not be mem_locked.

Required Methods§

source

fn write_lock_sized(&self) -> WriteGuardSized<'_, N>

Obtain write access to the underlying buffer.

source

fn into_read_sized(self: Arc<Self>) -> BufReadSized<N>

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

source

fn into_write_unsized(self: Arc<Self>) -> BufWrite

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

Implementors§