Trait holochain::prelude::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::dependencies::hc_seed_bundle::dependencies::sodoken::buffer::AsBufWrite
source · pub trait AsBufWrite: AsBufRead {
// Required methods
fn write_lock(&self) -> WriteGuard<'_>;
fn into_read(self: Arc<Self, Global>) -> BufRead;
fn into_extend(self: Arc<Self, Global>) -> BufExtend;
}
Expand description
A writable buffer that may or may not be mem_locked.
Required Methods§
sourcefn write_lock(&self) -> WriteGuard<'_>
fn write_lock(&self) -> WriteGuard<'_>
Obtain write access to the underlying buffer.
sourcefn into_read(self: Arc<Self, Global>) -> BufRead
fn into_read(self: Arc<Self, Global>) -> BufRead
Downgrade this to a read-only reference without cloning internal data and without changing memory locking strategy.
sourcefn into_extend(self: Arc<Self, Global>) -> BufExtend
fn into_extend(self: Arc<Self, Global>) -> BufExtend
Transform this buffer into an extendable type.