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
Auto 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