pub enum PixError<P: Display> {
Show 14 variants
InvalidInput,
InvalidConfiguration(ValidationErrors),
UnexpectedShare,
InvalidShare(P, SsaIndex),
ShareIsEmpty,
AckBufferFull,
InvalidSsa,
DuplicateCommitment,
MissingSsaCommitment,
UnprovenSsaCommitment,
SsaIndexOverflow,
CryptoError(CryptoError),
EccError(Error),
VsssError(Error),
}Expand description
List of all errors that can occur in the PIX protocol.
Variants§
InvalidInput
InvalidConfiguration(ValidationErrors)
No longer produced by the reconstructor: a share failing verification is expected adversarial
input rather than a fault in the call, and the caller needs the cycle’s running fault total
along with it — which an error cannot carry without becoming a telemetry channel. It surfaces
as ShareResolution::InvalidShares instead.
Retained because it is what makes PixError generic over the pseudonym; dropping the
parameter touches every signature in the crate and is its own change.
AckBufferFull
The share was dropped rather than buffered: the reconstructor is already holding
max_ack_buffer_bytes worth of shares awaiting acknowledgement.
Deliberately not an expected error. Reaching it means share loss — the Exit has put a packet on the wire whose acknowledgement will now find nothing — so it should be as loud as the caller’s log level allows.
InvalidSsa
DuplicateCommitment
MissingSsaCommitment
UnprovenSsaCommitment
SsaIndexOverflow
CryptoError(CryptoError)
EccError(Error)
VsssError(Error)
Trait Implementations§
Source§impl<P: Display> Error for PixError<P>
impl<P: Display> Error for PixError<P>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl<P> Freeze for PixError<P>where
P: Freeze,
impl<P> RefUnwindSafe for PixError<P>where
P: RefUnwindSafe,
impl<P> Send for PixError<P>where
P: Send,
impl<P> Sync for PixError<P>where
P: Sync,
impl<P> Unpin for PixError<P>where
P: Unpin,
impl<P> UnsafeUnpin for PixError<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for PixError<P>where
P: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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>
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>
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