pub struct DefaultStyleUpload {
pub category: String,
}Fields§
§category: StringTrait Implementations§
Source§impl BreakpointUpload for DefaultStyleUpload
impl BreakpointUpload for DefaultStyleUpload
Source§fn prepare<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client: &'life1 Client,
task: &'life2 TransferTask,
_local_offset: u64,
) -> Pin<Box<dyn Future<Output = Result<UploadResumeInfo, MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn prepare<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client: &'life1 Client,
task: &'life2 TransferTask,
_local_offset: u64,
) -> Pin<Box<dyn Future<Output = Result<UploadResumeInfo, MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
传输开始前的准备阶段:通常对应「初始化会话 / 查询已传进度」等一次或多次 HTTP 调用。 Read more
Source§fn upload_chunk<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
client: &'life1 Client,
task: &'life2 TransferTask,
chunk: &'life3 [u8],
offset: u64,
) -> Pin<Box<dyn Future<Output = Result<UploadResumeInfo, MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn upload_chunk<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
client: &'life1 Client,
task: &'life2 TransferTask,
chunk: &'life3 [u8],
offset: u64,
) -> Pin<Box<dyn Future<Output = Result<UploadResumeInfo, MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
上传单个分片:从本地文件读出的一段字节,由实现封装为 HTTP 请求并发送。 Read more
Source§fn complete_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_client: &'life1 Client,
_task: &'life2 TransferTask,
) -> Pin<Box<dyn Future<Output = Result<(), MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn complete_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_client: &'life1 Client,
_task: &'life2 TransferTask,
) -> Pin<Box<dyn Future<Output = Result<(), MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
所有分片字节已按协议上传完毕后,由执行器调用的收尾步骤。 Read more
Source§fn abort_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_client: &'life1 Client,
_task: &'life2 TransferTask,
) -> Pin<Box<dyn Future<Output = Result<(), MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn abort_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_client: &'life1 Client,
_task: &'life2 TransferTask,
) -> Pin<Box<dyn Future<Output = Result<(), MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
用户取消上传任务时,由执行器调用,用于协议层的清理或中止语义。 Read more
Source§impl Clone for DefaultStyleUpload
impl Clone for DefaultStyleUpload
Source§fn clone(&self) -> DefaultStyleUpload
fn clone(&self) -> DefaultStyleUpload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultStyleUpload
impl Debug for DefaultStyleUpload
Auto Trait Implementations§
impl Freeze for DefaultStyleUpload
impl RefUnwindSafe for DefaultStyleUpload
impl Send for DefaultStyleUpload
impl Sync for DefaultStyleUpload
impl Unpin for DefaultStyleUpload
impl UnsafeUnpin for DefaultStyleUpload
impl UnwindSafe for DefaultStyleUpload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more