pub struct UnfinishedPiece {
pub piece: i64,
pub bitmask: Vec<u8>,
}Expand description
A partial piece that was in progress when the torrent was paused/stopped.
Fields§
§piece: i64Piece index.
bitmask: Vec<u8>Bitmask of which blocks within the piece have been downloaded.
Trait Implementations§
Source§impl Clone for UnfinishedPiece
impl Clone for UnfinishedPiece
Source§fn clone(&self) -> UnfinishedPiece
fn clone(&self) -> UnfinishedPiece
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 UnfinishedPiece
impl Debug for UnfinishedPiece
Source§impl<'de> Deserialize<'de> for UnfinishedPiece
impl<'de> Deserialize<'de> for UnfinishedPiece
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UnfinishedPiece
impl PartialEq for UnfinishedPiece
Source§fn eq(&self, other: &UnfinishedPiece) -> bool
fn eq(&self, other: &UnfinishedPiece) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UnfinishedPiece
impl Serialize for UnfinishedPiece
impl Eq for UnfinishedPiece
impl StructuralPartialEq for UnfinishedPiece
Auto Trait Implementations§
impl Freeze for UnfinishedPiece
impl RefUnwindSafe for UnfinishedPiece
impl Send for UnfinishedPiece
impl Sync for UnfinishedPiece
impl Unpin for UnfinishedPiece
impl UnsafeUnpin for UnfinishedPiece
impl UnwindSafe for UnfinishedPiece
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