pub struct PartialPieceInfo {
pub piece_index: u32,
pub blocks_in_piece: u32,
pub blocks_assigned: u32,
}Expand description
In-flight piece download status for the download queue.
Fields§
§piece_index: u32Index of the piece being downloaded.
blocks_in_piece: u32Total number of blocks in this piece.
blocks_assigned: u32Number of blocks that have been assigned to peers.
Trait Implementations§
Source§impl Clone for PartialPieceInfo
impl Clone for PartialPieceInfo
Source§fn clone(&self) -> PartialPieceInfo
fn clone(&self) -> PartialPieceInfo
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 moreSource§impl Debug for PartialPieceInfo
impl Debug for PartialPieceInfo
Auto Trait Implementations§
impl Freeze for PartialPieceInfo
impl RefUnwindSafe for PartialPieceInfo
impl Send for PartialPieceInfo
impl Sync for PartialPieceInfo
impl Unpin for PartialPieceInfo
impl UnsafeUnpin for PartialPieceInfo
impl UnwindSafe for PartialPieceInfo
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