pub trait BatchSizeProvider: DynClone + Debug + Send + Sync {
    // Required method
    fn batch_size(&self) -> usize;
}
Expand description

最大批量操作数获取接口

Required Methods§

source

fn batch_size(&self) -> usize

获取最大批量操作数

Trait Implementations§

source§

impl<'clone> Clone for Box<dyn BatchSizeProvider + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn BatchSizeProvider + Send + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn BatchSizeProvider + Send + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn BatchSizeProvider + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementations on Foreign Types§

source§

impl<T: BatchSizeProvider + ?Sized> BatchSizeProvider for Box<T>where Box<T>: DynClone + Debug + Send + Sync,

source§

impl<T: BatchSizeProvider + ?Sized> BatchSizeProvider for Arc<T>where Arc<T>: DynClone + Debug + Send + Sync,

source§

impl<'a, T: 'a + BatchSizeProvider + ?Sized> BatchSizeProvider for &'a Twhere &'a T: DynClone + Debug + Send + Sync,

source§

impl BatchSizeProvider for usize

source§

impl<T: BatchSizeProvider + ?Sized> BatchSizeProvider for Rc<T>where Rc<T>: DynClone + Debug + Send + Sync,

source§

impl<'a, T: 'a + BatchSizeProvider + ?Sized> BatchSizeProvider for &'a mut Twhere &'a mut T: DynClone + Debug + Send + Sync,

Implementors§