Struct pmem_log::log::Log
[−]
[src]
pub struct Log { // some fields omitted }
pub struct Log { // some fields omitted }
impl Log
[src]fn open<P: AsRef<Path>>(path: P) -> Result<Self, Error>
fn create<P: AsRef<Path>>(path: P, size: usize) -> Result<Self, Error>
fn append<T: AsRef<[u8]>>(&mut self, entry: T) -> Result<(), Error>
fn append_many<T: AsRef<[u8]>>(&mut self, entries: &[T]) -> Result<(), Error>
fn len(&self) -> usize
fn capacity(&self) -> usize
fn walk<F>(&self, chunk_size: usize, callback: F) where F: Fn(&[u8]) -> Option<()>
impl Drop for Log
[src]