pub enum SectorPlottingProgress {
Downloading,
Downloaded(Duration),
Encoding,
Encoded(Duration),
Finished {
plotted_sector: PlottedSector,
time: Duration,
sector: Pin<Box<dyn Stream<Item = Result<Bytes, 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 Freeze for SectorPlottingProgress
impl !RefUnwindSafe for SectorPlottingProgress
impl Send for SectorPlottingProgress
impl Sync for SectorPlottingProgress
impl Unpin for SectorPlottingProgress
impl !UnwindSafe for SectorPlottingProgress
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