Trait sodoken::buffer::AsBufWriteSized[][src]

pub trait AsBufWriteSized<const N: usize>: AsBufReadSized<N> + AsBufWrite {
    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

Obtain write access to the underlying buffer.

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

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

Implementations on Foreign Types

Implementors