Struct barc::BarcWriter
source · pub struct BarcWriter<'a> { /* private fields */ }
Expand description
BARC file handle for write access.
Implementations
sourceimpl<'a> BarcWriter<'a>
impl<'a> BarcWriter<'a>
sourcepub fn write(
&mut self,
rec: &dyn MetaRecorded,
strategy: &dyn CompressStrategy
) -> Result<u64, BarcError>
pub fn write(
&mut self,
rec: &dyn MetaRecorded,
strategy: &dyn CompressStrategy
) -> Result<u64, BarcError>
Write a new record, returning the record’s offset from the
start of the BARC file. The writer position is then advanced
to the end of the file, for the next write
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for BarcWriter<'a>
impl<'a> !Send for BarcWriter<'a>
impl<'a> Sync for BarcWriter<'a>
impl<'a> Unpin for BarcWriter<'a>
impl<'a> UnwindSafe for BarcWriter<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more