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.