pub struct BarcWriter<'a> { /* private fields */ }Expand description
BARC file handle for write access.
Implementations§
Source§impl<'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> Freeze for BarcWriter<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more