pub enum BatchingStrategy {
Immediate,
FixedSize,
Dynamic,
Adaptive,
}Expand description
Batching strategies for different use cases
Variants§
Immediate
Process immediately without batching
FixedSize
Fixed-size batches
Dynamic
Dynamic batching based on timing
Adaptive
Adaptive batching based on load and performance
Trait Implementations§
Source§impl Clone for BatchingStrategy
impl Clone for BatchingStrategy
Source§fn clone(&self) -> BatchingStrategy
fn clone(&self) -> BatchingStrategy
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 BatchingStrategy
impl Debug for BatchingStrategy
Source§impl<'de> Deserialize<'de> for BatchingStrategy
impl<'de> Deserialize<'de> for BatchingStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BatchingStrategy> for JsValue
impl From<BatchingStrategy> for JsValue
Source§fn from(value: BatchingStrategy) -> Self
fn from(value: BatchingStrategy) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for BatchingStrategy
impl FromWasmAbi for BatchingStrategy
Source§impl IntoWasmAbi for BatchingStrategy
impl IntoWasmAbi for BatchingStrategy
Source§impl OptionFromWasmAbi for BatchingStrategy
impl OptionFromWasmAbi for BatchingStrategy
Source§impl OptionIntoWasmAbi for BatchingStrategy
impl OptionIntoWasmAbi for BatchingStrategy
Source§impl PartialEq for BatchingStrategy
impl PartialEq for BatchingStrategy
Source§impl Serialize for BatchingStrategy
impl Serialize for BatchingStrategy
Source§impl TryFromJsValue for BatchingStrategy
impl TryFromJsValue for BatchingStrategy
Source§impl VectorFromWasmAbi for BatchingStrategy
impl VectorFromWasmAbi for BatchingStrategy
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[BatchingStrategy]>
Source§impl VectorIntoWasmAbi for BatchingStrategy
impl VectorIntoWasmAbi for BatchingStrategy
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[BatchingStrategy]>) -> Self::Abi
Source§impl WasmDescribeVector for BatchingStrategy
impl WasmDescribeVector for BatchingStrategy
impl Copy for BatchingStrategy
impl Eq for BatchingStrategy
impl StructuralPartialEq for BatchingStrategy
Auto Trait Implementations§
impl Freeze for BatchingStrategy
impl RefUnwindSafe for BatchingStrategy
impl Send for BatchingStrategy
impl Sync for BatchingStrategy
impl Unpin for BatchingStrategy
impl UnsafeUnpin for BatchingStrategy
impl UnwindSafe for BatchingStrategy
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.