[−][src]Struct buf_ref_reader::MmapBuffer
Buffer that uses circular buffer implemented with mirrored memory maps
Trait Implementations
impl Buffer for MmapBuffer
[src]
type Error = AllocError
Error type emitted if failed to (re)allocate the buffer
fn new(size: usize) -> Result<Self, AllocError>
[src]
fn filled(&self) -> &[u8]
[src]
fn enlarge(&mut self) -> Result<(), AllocError>
[src]
fn appendable(&mut self) -> &mut [u8]
[src]
fn grow(&mut self, amount: usize)
[src]
fn consume(&mut self, amount: usize) -> &[u8]
[src]
fn len(&self) -> usize
[src]
Auto Trait Implementations
impl Send for MmapBuffer
impl Sync for MmapBuffer
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,