Struct cyfs_bdt::ndn::chunk::ChunkDownloader
source · pub struct ChunkDownloader(_);Implementations§
source§impl ChunkDownloader
impl ChunkDownloader
pub fn to_weak(&self) -> WeakChunkDownloader
source§impl ChunkDownloader
impl ChunkDownloader
pub fn new( stack: Weak<StackImpl>, cache: ChunkCache, task: Box<dyn LeafDownloadTask> ) -> Self
pub fn owner(&self) -> &dyn LeafDownloadTask
pub fn cache(&self) -> &ChunkCache
pub fn chunk(&self) -> &ChunkId
pub fn calc_speed(&self, when: Timestamp) -> u32
pub fn cur_speed(&self) -> u32
pub fn history_speed(&self) -> u32
pub fn on_drain(&self, _: u32) -> u32
Trait Implementations§
source§impl Clone for ChunkDownloader
impl Clone for ChunkDownloader
source§fn clone(&self) -> ChunkDownloader
fn clone(&self) -> ChunkDownloader
Returns a copy 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 more