pub struct DriverBuilderWithProcessor<T: Processable> {
pub mem_limit_mb: usize,
pub block_processor: fn(Vec<u8>) -> T,
}Expand description
Builder-style driver intermediate step
start from DriverBuilder
Fields§
§mem_limit_mb: usize§block_processor: fn(Vec<u8>) -> TImplementations§
Source§impl<T: Processable> DriverBuilderWithProcessor<T>
impl<T: Processable> DriverBuilderWithProcessor<T>
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
Trait Implementations§
Source§impl<T: Clone + Processable> Clone for DriverBuilderWithProcessor<T>
impl<T: Clone + Processable> Clone for DriverBuilderWithProcessor<T>
Source§fn clone(&self) -> DriverBuilderWithProcessor<T>
fn clone(&self) -> DriverBuilderWithProcessor<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for DriverBuilderWithProcessor<T>
impl<T> RefUnwindSafe for DriverBuilderWithProcessor<T>
impl<T> Send for DriverBuilderWithProcessor<T>
impl<T> Sync for DriverBuilderWithProcessor<T>
impl<T> Unpin for DriverBuilderWithProcessor<T>
impl<T> UnwindSafe for DriverBuilderWithProcessor<T>
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