pub enum PricingModeError {
EntryPointCannotBeCall,
EntryPointCannotBeCustom {
entry_point: TransactionEntryPoint,
},
InvalidPricingMode {
price_mode: PricingMode,
},
UnableToCalculateGasCost,
UnexpectedEntryPoint {
entry_point: TransactionEntryPoint,
lane_id: u8,
},
}
Expand description
Errors that can occur when calling PricingMode functions
Variants§
EntryPointCannotBeCall
The entry point for this transaction target cannot be call
.
EntryPointCannotBeCustom
The entry point for this transaction target cannot be TransactionEntryPoint::Custom
.
Fields
§
entry_point: TransactionEntryPoint
The invalid entry point.
InvalidPricingMode
Invalid combination of pricing handling and pricing mode.
Fields
§
price_mode: PricingMode
The pricing mode as specified by the transaction.
UnableToCalculateGasCost
Unable to calculate gas cost.
UnexpectedEntryPoint
Unexpected entry point.
Trait Implementations§
Source§impl Debug for PricingModeError
impl Debug for PricingModeError
Source§impl From<PricingModeError> for InvalidTransaction
impl From<PricingModeError> for InvalidTransaction
Source§fn from(err: PricingModeError) -> Self
fn from(err: PricingModeError) -> Self
Converts to this type from the input type.
Source§impl From<PricingModeError> for InvalidTransactionV1
impl From<PricingModeError> for InvalidTransactionV1
Source§fn from(err: PricingModeError) -> Self
fn from(err: PricingModeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PricingModeError
impl RefUnwindSafe for PricingModeError
impl Send for PricingModeError
impl Sync for PricingModeError
impl Unpin for PricingModeError
impl UnwindSafe for PricingModeError
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 more