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),
}Available on crate feature
client-fireblocks only.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>(error: E) -> FireBlockErrorwhere
E: Display,
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: Error) -> FireBlockError
fn from(source: Error) -> FireBlockError
Converts to this type from the input type.
Source§impl From<Error> for FireBlockError
impl From<Error> for FireBlockError
Source§fn from(source: Error) -> FireBlockError
fn from(source: Error) -> FireBlockError
Converts to this type from the input type.
Source§impl From<Error> for FireBlockError
impl From<Error> for FireBlockError
Source§fn from(source: Error) -> FireBlockError
fn from(source: Error) -> FireBlockError
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for FireBlockError
impl From<InvalidHeaderValue> for FireBlockError
Source§fn from(source: InvalidHeaderValue) -> FireBlockError
fn from(source: InvalidHeaderValue) -> FireBlockError
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 moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Creates a shared type from an unshared type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.