pub struct DownloadSectorOptions<'a, PG> {
pub public_key_hash: &'a Blake3Hash,
pub sector_index: SectorIndex,
pub piece_getter: &'a PG,
pub farmer_protocol_info: FarmerProtocolInfo,
pub erasure_coding: &'a ErasureCoding,
pub pieces_in_sector: u16,
}Expand description
Options for sector downloading
Fields§
§public_key_hash: &'a Blake3HashPublic key corresponding to sector
sector_index: SectorIndexSector index
piece_getter: &'a PGGetter for pieces of archival history
farmer_protocol_info: FarmerProtocolInfoFarmer protocol info
erasure_coding: &'a ErasureCodingErasure coding instance
pieces_in_sector: u16How many pieces should sector contain
Trait Implementations§
Auto Trait Implementations§
impl<'a, PG> Freeze for DownloadSectorOptions<'a, PG>
impl<'a, PG> RefUnwindSafe for DownloadSectorOptions<'a, PG>where
PG: RefUnwindSafe,
impl<'a, PG> Send for DownloadSectorOptions<'a, PG>where
PG: Sync,
impl<'a, PG> Sync for DownloadSectorOptions<'a, PG>where
PG: Sync,
impl<'a, PG> Unpin for DownloadSectorOptions<'a, PG>
impl<'a, PG> UnwindSafe for DownloadSectorOptions<'a, PG>where
PG: RefUnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more