Struct cyfs_bdt::ndn::channel::DownloadSession
source · pub struct DownloadSession(_);Implementations§
source§impl DownloadSession
impl DownloadSession
pub fn error( chunk: ChunkId, session_id: Option<TempSeq>, source: DownloadSource<DeviceId>, referer: Option<String>, group_path: Option<String>, err: BuckyError ) -> Self
pub fn interest( chunk: ChunkId, session_id: TempSeq, channel: Channel, source: DownloadSource<DeviceId>, cache: ChunkStreamCache, referer: Option<String>, group_path: Option<String> ) -> Self
pub fn source(&self) -> &DownloadSource<DeviceId>
pub fn referer(&self) -> &Option<String>
pub fn group_path(&self) -> &Option<String>
pub fn start(&self)
pub fn chunk(&self) -> &ChunkId
pub fn state(&self) -> DownloadSessionState
pub fn session_id(&self) -> &TempSeq
pub fn ptr_eq(&self, other: &Self) -> bool
pub async fn wait_finish(&self) -> DownloadSessionState
pub fn cancel_by_error(&self, err: BuckyError)
pub fn calc_speed(&self, when: Timestamp) -> u32
pub fn cur_speed(&self) -> u32
pub fn history_speed(&self) -> u32
Trait Implementations§
source§impl Clone for DownloadSession
impl Clone for DownloadSession
source§fn clone(&self) -> DownloadSession
fn clone(&self) -> DownloadSession
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