Trait DataPartitionProvider

Source
pub trait DataPartitionProvider:
    DynClone
    + Debug
    + Sync
    + Send {
    // Required methods
    fn part_size(&self) -> PartSize;
    fn feedback(&self, feedback: DataPartitionProviderFeedback<'_>);
}
Expand description

分片大小获取接口

Required Methods§

Source

fn part_size(&self) -> PartSize

获取分片大小

Source

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

反馈分片大小结果

Implementations on Foreign Types§

Source§

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

Source§

impl<'a, T: 'a + DataPartitionProvider + ?Sized> DataPartitionProvider for &'a mut T

Source§

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

Source§

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

Source§

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

Implementors§