pub trait MultiPartsUploaderSchedulerExt<A: Digest + Send + 'static>: MultiPartsUploaderScheduler<A> {
// Provided methods
fn upload_path(
&self,
path: impl AsRef<Path>,
params: ObjectParams,
) -> ApiResult<Value> { ... }
fn upload_reader<R: Read + Debug + Send + Sync + 'static>(
&self,
reader: R,
params: ObjectParams,
) -> ApiResult<Value> { ... }
fn async_upload_path<'a>(
&'a self,
path: impl AsRef<Path> + Send + Sync + 'a,
params: ObjectParams,
) -> BoxFuture<'a, ApiResult<Value>> { ... }
fn async_upload_reader<R: AsyncRead + Unpin + Debug + Send + Sync + 'static>(
&self,
reader: R,
params: ObjectParams,
) -> BoxFuture<'_, ApiResult<Value>> { ... }
}
Expand description
分片上传调度器扩展接口
Provided Methods§
Sourcefn upload_path(
&self,
path: impl AsRef<Path>,
params: ObjectParams,
) -> ApiResult<Value>
fn upload_path( &self, path: impl AsRef<Path>, params: ObjectParams, ) -> ApiResult<Value>
上传指定路径的文件
Sourcefn upload_reader<R: Read + Debug + Send + Sync + 'static>(
&self,
reader: R,
params: ObjectParams,
) -> ApiResult<Value>
fn upload_reader<R: Read + Debug + Send + Sync + 'static>( &self, reader: R, params: ObjectParams, ) -> ApiResult<Value>
上传输入流的数据
Sourcefn async_upload_path<'a>(
&'a self,
path: impl AsRef<Path> + Send + Sync + 'a,
params: ObjectParams,
) -> BoxFuture<'a, ApiResult<Value>>
Available on crate feature async
only.
fn async_upload_path<'a>( &'a self, path: impl AsRef<Path> + Send + Sync + 'a, params: ObjectParams, ) -> BoxFuture<'a, ApiResult<Value>>
async
only.异步上传指定路径的文件
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.