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