pub enum FireBlockError {
Show 13 variants
JsonWebTokenError(Error),
AlloyContractError(Error),
OtherError(String),
ReqwestError(Error),
InvalidHeaderValueError(InvalidHeaderValue),
SerdeError(Error),
AssetIDError(String),
AccountNotFoundError(String),
ContractNotFound(String),
TransactionFailed(String, String),
NotBroadcasted(String, String),
ReceiptNotYetAvailable(String, String),
TransactionReceiptNotFound(String),
}
Expand description
Error returned by AvsRegistry
Variants§
JsonWebTokenError(Error)
Could not sign the jwt payload
AlloyContractError(Error)
Alloy Contract error
OtherError(String)
ReqwestError(Error)
Reqwest error
InvalidHeaderValueError(InvalidHeaderValue)
Invalid header value error
SerdeError(Error)
Serde error
AssetIDError(String)
Serde error
AccountNotFoundError(String)
Account not found in whitelisted accounts
ContractNotFound(String)
Contract not found in whitelisted contract
TransactionFailed(String, String)
Transaction failed or rejected or Cancelled or Blocked
NotBroadcasted(String, String)
To be broadcasted transactions
ReceiptNotYetAvailable(String, String)
Receipt not available yet
TransactionReceiptNotFound(String)
Transaction receipt not found
Implementations§
Source§impl FireBlockError
impl FireBlockError
pub fn from<E: Display>(error: E) -> FireBlockError
Trait Implementations§
Source§impl Debug for FireBlockError
impl Debug for FireBlockError
Source§impl Display for FireBlockError
impl Display for FireBlockError
Source§impl Error for FireBlockError
impl Error for FireBlockError
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<&str> for FireBlockError
impl From<&str> for FireBlockError
Source§fn from(err: &str) -> FireBlockError
fn from(err: &str) -> FireBlockError
Converts to this type from the input type.
Source§impl From<Error> for FireBlockError
impl From<Error> for FireBlockError
Source§fn from(source: AlloyError) -> Self
fn from(source: AlloyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for FireBlockError
impl From<Error> for FireBlockError
Source§fn from(source: ReqwestError) -> Self
fn from(source: ReqwestError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for FireBlockError
impl From<Error> for FireBlockError
Source§impl From<InvalidHeaderValue> for FireBlockError
impl From<InvalidHeaderValue> for FireBlockError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FireBlockError
impl !RefUnwindSafe for FireBlockError
impl Send for FireBlockError
impl Sync for FireBlockError
impl Unpin for FireBlockError
impl !UnwindSafe for FireBlockError
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 moreCreates a shared type from an unshared type.