pub enum Par2Error {
Show 28 variants
InvalidMagic {
offset: u64,
},
PacketTooShort {
expected: u64,
actual: u64,
},
InvalidPacketLength {
length: u64,
},
PacketHashMismatch {
offset: u64,
},
InvalidMainPacket {
reason: String,
},
InvalidFileDescPacket {
reason: String,
},
InvalidIfscPacket {
reason: String,
},
InvalidRecoveryPacket {
reason: String,
},
InvalidCreatorPacket {
reason: String,
},
ConflictingRecoverySet,
NoMainPacket,
InsufficientCriticalData {
reason: String,
},
ResourceLimitExceeded {
reason: String,
},
FileNotFound {
filename: String,
},
FileDamaged {
filename: String,
damaged_slices: u32,
total_slices: u32,
},
InsufficientRecoveryData {
needed: u32,
available: u32,
deficit: u32,
},
ReedSolomonError {
reason: String,
},
RepairWriteFailed {
filename: String,
offset: u64,
source: Error,
},
Cancelled,
Io(Error),
InvalidCreationOptions {
reason: String,
},
UnsafeCreationSource {
path: String,
reason: String,
},
CreationSourceChanged {
path: String,
},
CreationOutputExists {
path: String,
},
UnsafeCreationOutput {
path: String,
reason: String,
},
CreationValidation {
path: String,
reason: String,
},
MetalUnavailable {
reason: String,
},
MetalExecutionFailed {
reason: String,
},
}Expand description
Errors that can occur during PAR2 parsing, verification, and repair.
Variants§
InvalidMagic
PacketTooShort
InvalidPacketLength
PacketHashMismatch
InvalidMainPacket
InvalidFileDescPacket
InvalidIfscPacket
InvalidRecoveryPacket
InvalidCreatorPacket
ConflictingRecoverySet
NoMainPacket
InsufficientCriticalData
ResourceLimitExceeded
FileNotFound
FileDamaged
InsufficientRecoveryData
ReedSolomonError
RepairWriteFailed
Cancelled
Io(Error)
InvalidCreationOptions
UnsafeCreationSource
CreationSourceChanged
CreationOutputExists
UnsafeCreationOutput
CreationValidation
MetalExecutionFailed
Trait Implementations§
Source§impl Error for Par2Error
impl Error for Par2Error
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<Par2Error> for Par2SessionError
impl From<Par2Error> for Par2SessionError
Source§impl From<Par2Error> for ExternalCarryError
impl From<Par2Error> for ExternalCarryError
Source§impl From<SolverError> for Par2Error
impl From<SolverError> for Par2Error
Source§fn from(error: SolverError) -> Self
fn from(error: SolverError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Par2Error
impl !UnwindSafe for Par2Error
impl Freeze for Par2Error
impl Send for Par2Error
impl Sync for Par2Error
impl Unpin for Par2Error
impl UnsafeUnpin for Par2Error
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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