pub enum RexError {
Show 34 variants
MissingParameter {
param: String,
},
InvalidParameter {
param: String,
reason: String,
},
DecodeError {
param: String,
encoding: String,
reason: String,
},
InvalidUrl {
reason: String,
},
UrlValidationError {
reason: String,
},
HttpRequestFailed {
message: String,
reason: Option<String>,
},
HttpStatusError {
status: u16,
reason: String,
},
ResponseTooLarge {
max_size: usize,
},
RequestBodyTooLarge {
size: usize,
max_size: usize,
},
FilterError {
reason: String,
},
Timeout {
duration_ms: u64,
},
RetriesExhausted {
attempts: u8,
reason: String,
},
JsonError {
reason: String,
},
NoDataSources,
SecretDecryptionFailed {
reason: String,
},
InvalidSecretPayload {
reason: String,
},
RexOutputSizeTooSmall {
provided: usize,
},
InvalidRexDutyInput(String),
ConnectionError {
reason: String,
},
WebSocketError {
message: String,
},
DkgValidationError {
reason: String,
},
DkgCryptoError {
operation: String,
reason: String,
},
DkgNotImplemented {
handler: String,
},
DkgGenesisError {
reason: String,
},
DkgInstallShareError {
reason: String,
},
DkgDecryptionError {
dealer_index: u16,
reason: String,
},
DkgVerificationError {
dealer_index: u16,
},
DkgPartialDecryptError {
reason: String,
},
DkgSealingError {
reason: String,
},
DkgCombineError {
reason: String,
},
DkgAeadDecryptFailed,
DkgHkdfExpandFailed,
DkgInvalidKeyLength,
WasmExecutionError {
reason: String,
},
}Expand description
Represents errors that can occur during REX processing.
Variants§
MissingParameter
InvalidParameter
DecodeError
InvalidUrl
UrlValidationError
HttpRequestFailed
HttpStatusError
ResponseTooLarge
RequestBodyTooLarge
FilterError
Timeout
RetriesExhausted
JsonError
NoDataSources
SecretDecryptionFailed
InvalidSecretPayload
RexOutputSizeTooSmall
InvalidRexDutyInput(String)
ConnectionError
WebSocketError
DkgValidationError
DkgCryptoError
DkgNotImplemented
DkgGenesisError
DkgDecryptionError
DkgVerificationError
DkgPartialDecryptError
DkgSealingError
DkgCombineError
DkgAeadDecryptFailed
DkgHkdfExpandFailed
DkgInvalidKeyLength
WasmExecutionError
Trait Implementations§
Source§impl BorshDeserialize for RexError
impl BorshDeserialize for RexError
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for RexError
impl BorshSerialize for RexError
Source§impl<'de> Deserialize<'de> for RexError
impl<'de> Deserialize<'de> for RexError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RexError
Source§impl Error for RexError
impl Error for RexError
1.30.0 · 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<HeadersError> for RexError
impl From<HeadersError> for RexError
Source§fn from(err: HeadersError) -> Self
fn from(err: HeadersError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for RexError
Auto Trait Implementations§
impl Freeze for RexError
impl RefUnwindSafe for RexError
impl Send for RexError
impl Sync for RexError
impl Unpin for RexError
impl UnsafeUnpin for RexError
impl UnwindSafe for RexError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.