pub enum SectorPlottingProgress {
Downloading,
Downloaded(Duration),
Encoding,
Encoded(Duration),
Finished {
plotted_sector: PlottedSector,
time: Duration,
sector: Pin<Box<dyn Stream<Item = Result<SharedAlignedBuffer<Align4096>, String>> + Send + Sync>>,
},
Error {
error: String,
},
}Expand description
Sector plotting progress
Variants§
Downloading
Downloading sector pieces
Downloaded(Duration)
Downloaded sector pieces
Encoding
Encoding sector pieces
Encoded(Duration)
Encoded sector pieces
Finished
Finished plotting
Fields
§
plotted_sector: PlottedSectorInformation about the plotted sector
Error
Plotting failed
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SectorPlottingProgress
impl !UnwindSafe for SectorPlottingProgress
impl Forget for SectorPlottingProgress
impl Freeze for SectorPlottingProgresswhere
*const [u16; 65536] is !null: Freeze,
PhantomData<[u16; 65536]>: Freeze,
*const u8 is !null: Freeze,
PhantomData<PieceIndex>: Freeze,
*const dyn Stream<Item = Result<SharedAlignedBuffer<Align<4096>>, String>> + Sync + Send is !null: Freeze,
PhantomData<dyn Stream<Item = Result<SharedAlignedBuffer<Align<4096>>, String>> + Sync + Send>: Freeze,
PhantomData<u8>: Freeze,
impl Move for SectorPlottingProgress
impl Send for SectorPlottingProgress
impl Sync for SectorPlottingProgress
impl Unpin for SectorPlottingProgress
impl UnsafeUnpin for SectorPlottingProgresswhere
*const [u16; 65536] is !null: UnsafeUnpin,
PhantomData<[u16; 65536]>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<PieceIndex>: UnsafeUnpin,
*const dyn Stream<Item = Result<SharedAlignedBuffer<Align<4096>>, String>> + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Stream<Item = Result<SharedAlignedBuffer<Align<4096>>, String>> + Sync + Send>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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