Trait lair_keystore::dependencies::hc_seed_bundle::dependencies::sodoken::buffer::AsBufWriteSized
source · 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§
sourcefn write_lock_sized(&self) -> WriteGuardSized<'_, N>
fn write_lock_sized(&self) -> WriteGuardSized<'_, N>
Obtain write access to the underlying buffer.
sourcefn into_read_sized(self: Arc<Self>) -> BufReadSized<N>
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.
sourcefn into_write_unsized(self: Arc<Self>) -> BufWrite
fn into_write_unsized(self: Arc<Self>) -> BufWrite
Convert to an unsized BufWrite instance without cloning internal data and without changing memory locking strategy.