pub struct ChunkListTask(/* private fields */);
Implementations§
Source§impl ChunkListTask
impl ChunkListTask
pub fn new( stack: Weak<StackImpl>, name: String, chunk_list: ChunkListDesc, context: Box<dyn DownloadContext>, ) -> Self
pub fn name(&self) -> &str
pub fn chunk_list(&self) -> &ChunkListDesc
Source§impl ChunkListTask
impl ChunkListTask
pub fn reader( stack: Weak<StackImpl>, name: String, chunk_list: ChunkListDesc, context: Box<dyn DownloadContext>, ) -> (Self, ChunkListTaskReader)
Trait Implementations§
Source§impl Clone for ChunkListTask
impl Clone for ChunkListTask
Source§fn clone(&self) -> ChunkListTask
fn clone(&self) -> ChunkListTask
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 Display for ChunkListTask
impl Display for ChunkListTask
Source§impl DownloadTask for ChunkListTask
impl DownloadTask for ChunkListTask
fn clone_as_download_task(&self) -> Box<dyn DownloadTask>
fn on_post_add_to_root(&self, abs_path: String)
fn calc_speed(&self, when: Timestamp) -> u32
fn wait_user_canceled<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = BuckyError> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_task( &self, _path: Option<String>, _sub: Box<dyn DownloadTask>, ) -> BuckyResult<()>
fn sub_task(&self, _path: &str) -> Option<Box<dyn DownloadTask>>
Source§impl LeafDownloadTask for ChunkListTask
impl LeafDownloadTask for ChunkListTask
fn clone_as_leaf_task(&self) -> Box<dyn LeafDownloadTask>
fn abs_group_path(&self) -> Option<String>
fn context(&self) -> &dyn DownloadContext
fn finish(&self)
fn priority(&self) -> DownloadTaskPriority
Source§impl NdnTask for ChunkListTask
impl NdnTask for ChunkListTask
fn clone_as_task(&self) -> Box<dyn NdnTask>
fn state(&self) -> NdnTaskState
fn control_state(&self) -> NdnTaskControlState
fn cur_speed(&self) -> u32
fn history_speed(&self) -> u32
fn transfered(&self) -> u64
fn cancel_by_error(&self, err: BuckyError) -> BuckyResult<NdnTaskControlState>
fn resume(&self) -> BuckyResult<NdnTaskControlState>
fn cancel(&self) -> BuckyResult<NdnTaskControlState>
fn pause(&self) -> BuckyResult<NdnTaskControlState>
fn close(&self, _recursion: bool) -> BuckyResult<()>
Auto Trait Implementations§
impl Freeze for ChunkListTask
impl !RefUnwindSafe for ChunkListTask
impl Send for ChunkListTask
impl Sync for ChunkListTask
impl Unpin for ChunkListTask
impl !UnwindSafe for ChunkListTask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more