pub trait MultiPartsUploaderSchedulerExt<A: Digest + Send + 'static>: MultiPartsUploaderScheduler<A> {
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>>
fn 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.异步上传指定路径的文件
sourcefn async_upload_reader<R: AsyncRead + Unpin + Debug + Send + Sync + 'static>(
&self,
reader: R,
params: ObjectParams
) -> BoxFuture<'_, ApiResult<Value>>
fn async_upload_reader<R: AsyncRead + Unpin + Debug + Send + Sync + 'static>(
&self,
reader: R,
params: ObjectParams
) -> BoxFuture<'_, ApiResult<Value>>
Available on crate feature
async only.异步上传输入流的数据