Trait ConcurrencyProvider

Source
pub trait ConcurrencyProvider:
    DynClone
    + Debug
    + Sync
    + Send {
    // Required methods
    fn concurrency(&self) -> Concurrency;
    fn feedback(&self, feedback: ConcurrencyProviderFeedback<'_>);
}
Expand description

并发数获取接口

获取分片上传时的并发数

Required Methods§

Source

fn concurrency(&self) -> Concurrency

获取并发数

Source

fn feedback(&self, feedback: ConcurrencyProviderFeedback<'_>)

反馈并发数结果

Trait Implementations§

Source§

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

Source§

fn clone(&self) -> Box<dyn ConcurrencyProvider + '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 ConcurrencyProvider + Send + 'clone>

Source§

fn clone(&self) -> Box<dyn ConcurrencyProvider + 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 ConcurrencyProvider + Sync + Send + 'clone>

Source§

fn clone(&self) -> Box<dyn ConcurrencyProvider + 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 ConcurrencyProvider + Sync + 'clone>

Source§

fn clone(&self) -> Box<dyn ConcurrencyProvider + 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<'a, T> ConcurrencyProvider for &'a T

Source§

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

Source§

impl<T> ConcurrencyProvider for Box<T>

Source§

impl<T> ConcurrencyProvider for Rc<T>

Source§

impl<T> ConcurrencyProvider for Arc<T>

Implementors§