Trait holochain::prelude::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::dependencies::hc_seed_bundle::dependencies::sodoken::buffer::AsBufRead
source · pub trait AsBufRead: 'static + Debug + Send + Sync {
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn read_lock(&self) -> ReadGuard<'_>;
fn try_unwrap(self: Arc<Self>) -> Result<Box<[u8], Global>, BufRead>;
}
Expand description
A readable buffer that may or may not be mem_locked.