Docs.rs
  • cyfs-bdt-0.5.2
    • cyfs-bdt 0.5.2
    • Docs.rs crate page
    • BSD-2-Clause
    • Links
    • crates.io
    • Source
    • Owners
    • BDTDevTeam
    • Dependencies
      • async-std ^1.11 normal
      • async-trait ^0.1.53 normal
      • bytes ^0.4 normal
      • chrono ^0.4 normal
      • clap ^2.34.0 normal
      • cyfs-base ^0.5 normal
      • cyfs-debug ^0.5 normal
      • cyfs-raptorq ^1.6 normal
      • cyfs-util ^0.5 normal
      • futures ^0.3 normal
      • generic-array ^0.12 normal
      • hex ^0.4.2 normal
      • libc ^0.2 normal
      • log ^0.4 normal
      • lru_time_cache ^0.11 normal
      • once_cell ^1.12 normal
      • rand ^0.7.3 normal
      • ringbuf ^0.2.8 normal
      • rusqlite ^0.27.0 normal
      • sha2 ^0.8 normal
      • socket2 ^0.4.4 normal
      • winapi ^0.3 normal
      • nix ^0.18 normal
    • Versions
    • 0% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

DownloadTaskControl

Required Methods

  • cancel
  • control_state
  • pause
  • resume

Implementors

In cyfs_bdt

logo
Change settings

Trait cyfs_bdt::DownloadTaskControl

source · [−]
pub trait DownloadTaskControl: Sync + Send {
    fn control_state(&self) -> TaskControlState;
    fn pause(&self) -> BuckyResult<TaskControlState>;
    fn resume(&self) -> BuckyResult<TaskControlState>;
    fn cancel(&self) -> BuckyResult<TaskControlState>;
}

Required Methods

source

fn control_state(&self) -> TaskControlState

source

fn pause(&self) -> BuckyResult<TaskControlState>

source

fn resume(&self) -> BuckyResult<TaskControlState>

source

fn cancel(&self) -> BuckyResult<TaskControlState>

Implementors

source

impl DownloadTaskControl for ChunkListTask

source

impl DownloadTaskControl for ChunkTask

source

impl DownloadTaskControl for DirTask

source

impl DownloadTaskControl for FileTask