pub trait MultiPartsUploaderSchedulerExt<A>: MultiPartsUploaderScheduler<A>where
A: 'static + Digest + Send,{
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: 'static + Read + Debug + Send + Sync,
{ ... }
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, Global>> { ... }
fn async_upload_reader<R>(
&self,
reader: R,
params: ObjectParams
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send, Global>>
where
R: 'static + AsyncRead + Unpin + Debug + Send + Sync,
{ ... }
}
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>where
R: 'static + Read + Debug + Send + Sync,
fn upload_reader<R>(
&self,
reader: R,
params: ObjectParams
) -> Result<Value, Error>where
R: 'static + Read + Debug + Send + Sync,
上传输入流的数据