pub struct DownloadGroup(/* private fields */);
Implementations§
Source§impl DownloadGroup
impl DownloadGroup
pub fn new(history_speed: HistorySpeedConfig) -> Self
pub fn history_config(&self) -> &HistorySpeedConfig
Trait Implementations§
Source§impl Clone for DownloadGroup
impl Clone for DownloadGroup
Source§fn clone(&self) -> DownloadGroup
fn clone(&self) -> DownloadGroup
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 DownloadTask for DownloadGroup
impl DownloadTask for DownloadGroup
fn clone_as_download_task(&self) -> Box<dyn DownloadTask>
fn add_task( &self, path: Option<String>, sub: Box<dyn DownloadTask>, ) -> BuckyResult<()>
fn sub_task(&self, path: &str) -> Option<Box<dyn DownloadTask>>
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 on_post_add_to_root(&self, _abs_path: String)
Source§impl NdnTask for DownloadGroup
impl NdnTask for DownloadGroup
fn clone_as_task(&self) -> Box<dyn NdnTask>
fn state(&self) -> NdnTaskState
fn control_state(&self) -> NdnTaskControlState
fn close(&self, recursion: bool) -> BuckyResult<()>
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>
Auto Trait Implementations§
impl Freeze for DownloadGroup
impl RefUnwindSafe for DownloadGroup
impl Send for DownloadGroup
impl Sync for DownloadGroup
impl Unpin for DownloadGroup
impl UnwindSafe for DownloadGroup
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