pub enum Error {
Show 19 variants
NullPointer {
param: &'static str,
backtrace: Backtrace,
},
InvalidUTF8 {
backtrace: Backtrace,
source: Utf8Error,
},
NulByte {
backtrace: Backtrace,
source: NulError,
},
PartyIndexOutOfRange {
idx: usize,
count: usize,
backtrace: Backtrace,
},
EmptyPartyList {
backtrace: Backtrace,
},
ThresholdTooSmall {
threshold: u32,
backtrace: Backtrace,
},
ThresholdTooLarge {
threshold: u32,
party_count: usize,
backtrace: Backtrace,
},
DuplicatePartyId {
id: String,
backtrace: Backtrace,
},
ThisPartyIdxOutOfRange {
idx: usize,
party_count: usize,
backtrace: Backtrace,
},
SchemeNotFound {
name: String,
backtrace: Backtrace,
},
SessionNotComplete {
backtrace: Backtrace,
},
SessionAlreadyComplete {
backtrace: Backtrace,
},
RoundOverflow {
round: u8,
backtrace: Backtrace,
},
NotADkgSession {
kind: TcSchemeKind,
backtrace: Backtrace,
},
ShareSchemeMismatch {
expected: String,
actual: String,
backtrace: Backtrace,
},
ShareTruncated {
needed: usize,
have: usize,
backtrace: Backtrace,
},
ShareInvalidScheme {
backtrace: Backtrace,
},
InsufficientBuffer {
backtrace: Backtrace,
},
SchemeInternalError {
code: u32,
backtrace: Backtrace,
},
}Variants§
NullPointer
InvalidUTF8
NulByte
PartyIndexOutOfRange
EmptyPartyList
ThresholdTooSmall
ThresholdTooLarge
DuplicatePartyId
ThisPartyIdxOutOfRange
SchemeNotFound
SessionNotComplete
SessionAlreadyComplete
RoundOverflow
NotADkgSession
InsufficientBuffer
SchemeInternalError
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 ErrorCompat for Error
impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl<__T0> IntoError<Error> for NullPointerSnafu<__T0>
impl<__T0> IntoError<Error> for NullPointerSnafu<__T0>
Source§fn into_error(
self,
error: <NullPointerSnafu<__T0> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <NullPointerSnafu<__T0> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for InvalidUTF8Snafu
impl IntoError<Error> for InvalidUTF8Snafu
Source§fn into_error(
self,
error: <InvalidUTF8Snafu as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <InvalidUTF8Snafu as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for NulByteSnafu
impl IntoError<Error> for NulByteSnafu
Source§fn into_error(self, error: <NulByteSnafu as IntoError<Error>>::Source) -> Error
fn into_error(self, error: <NulByteSnafu as IntoError<Error>>::Source) -> Error
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<Error> for PartyIndexOutOfRangeSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for PartyIndexOutOfRangeSnafu<__T0, __T1>
Source§fn into_error(
self,
error: <PartyIndexOutOfRangeSnafu<__T0, __T1> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <PartyIndexOutOfRangeSnafu<__T0, __T1> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for EmptyPartyListSnafu
impl IntoError<Error> for EmptyPartyListSnafu
Source§fn into_error(
self,
error: <EmptyPartyListSnafu as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <EmptyPartyListSnafu as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl<__T0> IntoError<Error> for ThresholdTooSmallSnafu<__T0>
impl<__T0> IntoError<Error> for ThresholdTooSmallSnafu<__T0>
Source§fn into_error(
self,
error: <ThresholdTooSmallSnafu<__T0> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <ThresholdTooSmallSnafu<__T0> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<Error> for ThresholdTooLargeSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for ThresholdTooLargeSnafu<__T0, __T1>
Source§fn into_error(
self,
error: <ThresholdTooLargeSnafu<__T0, __T1> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <ThresholdTooLargeSnafu<__T0, __T1> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl<__T0> IntoError<Error> for DuplicatePartyIdSnafu<__T0>
impl<__T0> IntoError<Error> for DuplicatePartyIdSnafu<__T0>
Source§fn into_error(
self,
error: <DuplicatePartyIdSnafu<__T0> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <DuplicatePartyIdSnafu<__T0> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<Error> for ThisPartyIdxOutOfRangeSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for ThisPartyIdxOutOfRangeSnafu<__T0, __T1>
Source§fn into_error(
self,
error: <ThisPartyIdxOutOfRangeSnafu<__T0, __T1> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <ThisPartyIdxOutOfRangeSnafu<__T0, __T1> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl<__T0> IntoError<Error> for SchemeNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for SchemeNotFoundSnafu<__T0>
Source§fn into_error(
self,
error: <SchemeNotFoundSnafu<__T0> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <SchemeNotFoundSnafu<__T0> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for SessionNotCompleteSnafu
impl IntoError<Error> for SessionNotCompleteSnafu
Source§fn into_error(
self,
error: <SessionNotCompleteSnafu as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <SessionNotCompleteSnafu as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for SessionAlreadyCompleteSnafu
impl IntoError<Error> for SessionAlreadyCompleteSnafu
Source§fn into_error(
self,
error: <SessionAlreadyCompleteSnafu as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <SessionAlreadyCompleteSnafu as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl<__T0> IntoError<Error> for RoundOverflowSnafu<__T0>
impl<__T0> IntoError<Error> for RoundOverflowSnafu<__T0>
Source§fn into_error(
self,
error: <RoundOverflowSnafu<__T0> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <RoundOverflowSnafu<__T0> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl<__T0> IntoError<Error> for NotADkgSessionSnafu<__T0>
impl<__T0> IntoError<Error> for NotADkgSessionSnafu<__T0>
Source§fn into_error(
self,
error: <NotADkgSessionSnafu<__T0> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <NotADkgSessionSnafu<__T0> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§fn into_error(
self,
error: <ShareSchemeMismatchSnafu<__T0, __T1> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <ShareSchemeMismatchSnafu<__T0, __T1> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§fn into_error(
self,
error: <ShareTruncatedSnafu<__T0, __T1> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <ShareTruncatedSnafu<__T0, __T1> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§fn into_error(
self,
error: <ShareInvalidSchemeSnafu as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <ShareInvalidSchemeSnafu as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl IntoError<Error> for InsufficientBufferSnafu
impl IntoError<Error> for InsufficientBufferSnafu
Source§fn into_error(
self,
error: <InsufficientBufferSnafu as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <InsufficientBufferSnafu as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Source§impl<__T0> IntoError<Error> for SchemeInternalSnafu<__T0>
impl<__T0> IntoError<Error> for SchemeInternalSnafu<__T0>
Source§fn into_error(
self,
error: <SchemeInternalSnafu<__T0> as IntoError<Error>>::Source,
) -> Error
fn into_error( self, error: <SchemeInternalSnafu<__T0> as IntoError<Error>>::Source, ) -> Error
Combine the information to produce the error
Auto Trait Implementations§
impl !Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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