pub trait MultiPartsUploaderSchedulerExt<A>: MultiPartsUploaderScheduler<A>{
// 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§
Sourcefn upload_path(
&self,
path: impl AsRef<Path>,
params: ObjectParams,
) -> Result<Value, Error>
fn upload_path( &self, path: impl AsRef<Path>, params: ObjectParams, ) -> Result<Value, Error>
上传指定路径的文件
Sourcefn upload_reader<R>(
&self,
reader: R,
params: ObjectParams,
) -> Result<Value, Error>
fn upload_reader<R>( &self, reader: R, params: ObjectParams, ) -> Result<Value, Error>
上传输入流的数据
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.