pub enum RestoreState {
HttpFtp {
resume_offset: u64,
total_length: u64,
completed_length: u64,
},
BitTorrent {
bitfield: Vec<u8>,
num_pieces: Option<u32>,
piece_length: Option<u32>,
info_hash: Option<String>,
metadata_path: Option<String>,
},
Metalink {
mirrors: Vec<MirrorRestoreInfo>,
resume_offset: Option<u64>,
},
}Expand description
Protocol-specific restore state extracted from ResumeData
Contains the minimum information needed by each protocol handler to resume an interrupted download without re-downloading completed data.
Variants§
HttpFtp
HTTP/FTP download with range resume support
Fields
BitTorrent
BitTorrent download with piece bitmap
Fields
Metalink
Metalink download with mirror priority
Trait Implementations§
Source§impl Clone for RestoreState
impl Clone for RestoreState
Source§fn clone(&self) -> RestoreState
fn clone(&self) -> RestoreState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RestoreState
impl RefUnwindSafe for RestoreState
impl Send for RestoreState
impl Sync for RestoreState
impl Unpin for RestoreState
impl UnsafeUnpin for RestoreState
impl UnwindSafe for RestoreState
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