Trait BatchSizeProvider

Source
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) -> Box<dyn BatchSizeProvider + 'clone>

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) -> Box<dyn BatchSizeProvider + Send + 'clone>

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 + Send + 'clone>

Source§

fn clone(&self) -> Box<dyn BatchSizeProvider + Sync + Send + 'clone>

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) -> Box<dyn BatchSizeProvider + Sync + 'clone>

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 BatchSizeProvider for usize

Source§

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

Source§

impl<'a, T> BatchSizeProvider for &'a mut T

Source§

impl<T> BatchSizeProvider for Box<T>

Source§

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

Source§

impl<T> BatchSizeProvider for Arc<T>

Implementors§