pub struct BatchConfig {
pub batch_size: u32,
pub num_workers: Option<u32>,
pub prefetch: Option<bool>,
}Expand description
Batch processing configuration
Fields§
§batch_size: u32§num_workers: Option<u32>§prefetch: Option<bool>Trait Implementations§
Source§impl FromNapiValue for BatchConfig
impl FromNapiValue for BatchConfig
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for BatchConfig
impl ToNapiValue for BatchConfig
Source§unsafe fn to_napi_value(env: napi_env, val: BatchConfig) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: BatchConfig) -> Result<napi_value>
Safety Read more
Source§impl TypeName for BatchConfig
impl TypeName for BatchConfig
Source§impl ValidateNapiValue for BatchConfig
impl ValidateNapiValue for BatchConfig
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for BatchConfig
impl RefUnwindSafe for BatchConfig
impl Send for BatchConfig
impl Sync for BatchConfig
impl Unpin for BatchConfig
impl UnsafeUnpin for BatchConfig
impl UnwindSafe for BatchConfig
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