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§

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

Obtain write access to the underlying buffer.

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.

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

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

Implementations on Foreign Types§

§

impl<const N: usize> AsBufWriteSized<N> for RwLock<RawRwLock, [u8; N]>

§

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

§

fn into_read_sized(self: Arc<RwLock<RawRwLock, [u8; N]>>) -> BufReadSized<N>

§

fn into_write_unsized(self: Arc<RwLock<RawRwLock, [u8; N]>>) -> BufWrite

Implementors§