pub struct BatchConfig { /* private fields */ }Expand description
Batch processing configuration
Implementations§
Source§impl BatchConfig
impl BatchConfig
Sourcepub fn new(strategy: BatchingStrategy, max_batch_size: usize) -> Self
pub fn new(strategy: BatchingStrategy, max_batch_size: usize) -> Self
Create a new batch configuration
Sourcepub fn throughput() -> Self
pub fn throughput() -> Self
Create configuration optimized for throughput
Sourcepub fn set_timeout_ms(&mut self, timeout_ms: u32)
pub fn set_timeout_ms(&mut self, timeout_ms: u32)
Set timeout for batch completion
Sourcepub fn set_target_latency_ms(&mut self, latency_ms: u32)
pub fn set_target_latency_ms(&mut self, latency_ms: u32)
Set target latency
Sourcepub fn set_memory_limit_mb(&mut self, limit_mb: f32)
pub fn set_memory_limit_mb(&mut self, limit_mb: f32)
Set memory limit
Sourcepub fn enable_prioritization(&mut self)
pub fn enable_prioritization(&mut self)
Enable request prioritization
Sourcepub fn enable_preemption(&mut self)
pub fn enable_preemption(&mut self)
Enable batch preemption for high-priority requests
Trait Implementations§
Source§impl Clone for BatchConfig
impl Clone for BatchConfig
Source§fn clone(&self) -> BatchConfig
fn clone(&self) -> BatchConfig
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 BatchConfig
impl Debug for BatchConfig
Source§impl From<BatchConfig> for JsValue
impl From<BatchConfig> for JsValue
Source§fn from(value: BatchConfig) -> Self
fn from(value: BatchConfig) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for BatchConfig
impl FromWasmAbi for BatchConfig
Source§impl IntoWasmAbi for BatchConfig
impl IntoWasmAbi for BatchConfig
Source§impl LongRefFromWasmAbi for BatchConfig
impl LongRefFromWasmAbi for BatchConfig
Source§impl OptionFromWasmAbi for BatchConfig
impl OptionFromWasmAbi for BatchConfig
Source§impl OptionIntoWasmAbi for BatchConfig
impl OptionIntoWasmAbi for BatchConfig
Source§impl RefFromWasmAbi for BatchConfig
impl RefFromWasmAbi for BatchConfig
Source§type Anchor = RcRef<BatchConfig>
type Anchor = RcRef<BatchConfig>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for BatchConfig
impl RefMutFromWasmAbi for BatchConfig
Source§impl TryFromJsValue for BatchConfig
impl TryFromJsValue for BatchConfig
Source§impl VectorFromWasmAbi for BatchConfig
impl VectorFromWasmAbi for BatchConfig
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[BatchConfig]>
Source§impl VectorIntoWasmAbi for BatchConfig
impl VectorIntoWasmAbi for BatchConfig
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[BatchConfig]>) -> Self::Abi
Source§impl WasmDescribeVector for BatchConfig
impl WasmDescribeVector for BatchConfig
impl SupportsConstructor for BatchConfig
impl SupportsInstanceProperty for BatchConfig
impl SupportsStaticProperty for BatchConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.