pub enum SegmentDownloadingError {
NotEnoughPieces {
segment_index: SegmentIndex,
downloaded_pieces: usize,
},
PieceGetterError {
source: Error,
},
SegmentReconstruction {
source: ReconstructorError,
},
SegmentDecoding {
source: Error,
},
}Expand description
Segment getter errors.
Variants§
NotEnoughPieces
Not enough pieces
Fields
§
segment_index: SegmentIndexThe segment we were trying to download
PieceGetterError
Piece getter error
SegmentReconstruction
Segment reconstruction error
Fields
§
source: ReconstructorErrorSegmentDecoding
Segment decoding error
Fields
§
source: ErrorTrait Implementations§
Source§impl Debug for SegmentDownloadingError
impl Debug for SegmentDownloadingError
Source§impl Display for SegmentDownloadingError
impl Display for SegmentDownloadingError
Source§impl Error for SegmentDownloadingError
impl Error for SegmentDownloadingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for SegmentDownloadingError
impl From<Error> for SegmentDownloadingError
Source§impl From<Error> for SegmentDownloadingError
impl From<Error> for SegmentDownloadingError
Auto Trait Implementations§
impl Freeze for SegmentDownloadingError
impl RefUnwindSafe for SegmentDownloadingError
impl Send for SegmentDownloadingError
impl Sync for SegmentDownloadingError
impl Unpin for SegmentDownloadingError
impl UnwindSafe for SegmentDownloadingError
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