Struct barc::BarcReader
source · pub struct BarcReader { /* private fields */ }
Expand description
BARC file handle for read access. Each reader has its own file handle and position.
Implementations
sourceimpl BarcReader
impl BarcReader
sourcepub fn read(&mut self, tune: &Tunables) -> Result<Option<Record>, BarcError>
pub fn read(&mut self, tune: &Tunables) -> Result<Option<Record>, BarcError>
Read and return the next Record or None if EOF. The provided Tunables
max_body_ram
controls, depending on record sizes and compression,
whether the request and response bodies are read directly into RAM,
buffered in a file, or deferred via a ReadSlice
.
Auto Trait Implementations
impl RefUnwindSafe for BarcReader
impl Send for BarcReader
impl Sync for BarcReader
impl Unpin for BarcReader
impl UnwindSafe for BarcReader
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