pub struct DriverBuilder {
pub mem_limit_mb: usize,
}Expand description
Builder-style driver setup
Fields§
§mem_limit_mb: usizeImplementations§
Source§impl DriverBuilder
impl DriverBuilder
Sourcepub fn with_mem_limit_mb(self, new_limit: usize) -> Self
pub fn with_mem_limit_mb(self, new_limit: usize) -> Self
Set the in-memory size limit, in MiB
Default: 16 MiB
Sourcepub fn with_block_processor<T: Processable>(
self,
p: fn(Vec<u8>) -> T,
) -> DriverBuilderWithProcessor<T>
pub fn with_block_processor<T: Processable>( self, p: fn(Vec<u8>) -> T, ) -> DriverBuilderWithProcessor<T>
Set the block processor
Default: noop, raw blocks will be emitted
Trait Implementations§
Source§impl Clone for DriverBuilder
impl Clone for DriverBuilder
Source§fn clone(&self) -> DriverBuilder
fn clone(&self) -> DriverBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DriverBuilder
impl Debug for DriverBuilder
Auto Trait Implementations§
impl Freeze for DriverBuilder
impl RefUnwindSafe for DriverBuilder
impl Send for DriverBuilder
impl Sync for DriverBuilder
impl Unpin for DriverBuilder
impl UnwindSafe for DriverBuilder
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