Trait MultiPartsUploaderSchedulerExt

Source
pub trait MultiPartsUploaderSchedulerExt<A>: MultiPartsUploaderScheduler<A>
where A: Digest + Send + 'static,
{ // Provided methods fn upload_path( &self, path: impl AsRef<Path>, params: ObjectParams, ) -> Result<Value, Error> { ... } fn upload_reader<R>( &self, reader: R, params: ObjectParams, ) -> Result<Value, Error> where R: Read + Debug + Send + Sync + 'static { ... } fn async_upload_path<'a>( &'a self, path: impl AsRef<Path> + Send + Sync + 'a, params: ObjectParams, ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'a>> { ... } fn async_upload_reader<R>( &self, reader: R, params: ObjectParams, ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + '_>> where R: AsyncRead + Unpin + Debug + Send + Sync + 'static { ... } }
Expand description

分片上传调度器扩展接口

Provided Methods§

Source

fn upload_path( &self, path: impl AsRef<Path>, params: ObjectParams, ) -> Result<Value, Error>

上传指定路径的文件

Source

fn upload_reader<R>( &self, reader: R, params: ObjectParams, ) -> Result<Value, Error>
where R: Read + Debug + Send + Sync + 'static,

上传输入流的数据

Source

fn async_upload_path<'a>( &'a self, path: impl AsRef<Path> + Send + Sync + 'a, params: ObjectParams, ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'a>>

异步上传指定路径的文件

Source

fn async_upload_reader<R>( &self, reader: R, params: ObjectParams, ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + '_>>
where R: AsyncRead + Unpin + Debug + Send + Sync + 'static,

异步上传输入流的数据

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<A, T> MultiPartsUploaderSchedulerExt<A> for T
where A: Digest + Send + 'static, T: MultiPartsUploaderScheduler<A>,