Enum fuel_core_txpool::Error
source · #[non_exhaustive]pub enum Error {
Show 34 variants
GasPriceNotFound(BlockHeight),
NoMetadata,
NotSupportedTransactionType,
NotInsertedTxKnown,
NotInsertedLimitHit,
NotInsertedGasPriceTooLow,
NotInsertedCollision(Bytes32, UtxoId),
NotInsertedCollisionContractId(ContractId),
NotInsertedCollisionMessageId(Bytes32, Nonce),
NotInsertedOutputDoesNotExist(UtxoId),
NotInsertedInputContractDoesNotExist(ContractId),
NotInsertedContractIdAlreadyTaken(ContractId),
NotInsertedInputUtxoIdNotDoesNotExist(UtxoId),
NotInsertedInputUtxoIdSpent(UtxoId),
NotInsertedInputMessageUnknown(Nonce),
NotInsertedContractPricedLower(ContractId),
NotInsertedIoCoinMismatch,
NotInsertedIoWrongOwner,
NotInsertedIoWrongAmount,
NotInsertedIoWrongAssetId,
NotInsertedIoMessageMismatch,
NotInsertedIoContractOutput,
NotInsertedMaxDepth,
Removed,
TTLReason,
SqueezedOut(String),
ConsensusValidity(CheckError),
MintIsDisallowed,
BlacklistedUTXO(UtxoId),
BlacklistedOwner(Address),
BlacklistedContract(ContractId),
BlacklistedMessage(Nonce),
Database(String),
Other(String),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GasPriceNotFound(BlockHeight)
NoMetadata
NotSupportedTransactionType
NotInsertedTxKnown
NotInsertedLimitHit
NotInsertedGasPriceTooLow
NotInsertedCollision(Bytes32, UtxoId)
NotInsertedCollisionContractId(ContractId)
NotInsertedCollisionMessageId(Bytes32, Nonce)
NotInsertedOutputDoesNotExist(UtxoId)
NotInsertedInputContractDoesNotExist(ContractId)
NotInsertedContractIdAlreadyTaken(ContractId)
NotInsertedInputUtxoIdNotDoesNotExist(UtxoId)
NotInsertedInputUtxoIdSpent(UtxoId)
NotInsertedInputMessageUnknown(Nonce)
NotInsertedContractPricedLower(ContractId)
NotInsertedIoCoinMismatch
NotInsertedIoWrongOwner
NotInsertedIoWrongAmount
NotInsertedIoWrongAssetId
NotInsertedIoMessageMismatch
NotInsertedIoContractOutput
NotInsertedMaxDepth
Removed
TTLReason
SqueezedOut(String)
ConsensusValidity(CheckError)
MintIsDisallowed
BlacklistedUTXO(UtxoId)
BlacklistedOwner(Address)
BlacklistedContract(ContractId)
BlacklistedMessage(Nonce)
Database(String)
Other(String)
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<CheckError> for Error
impl From<CheckError> for Error
source§fn from(e: CheckError) -> Error
fn from(e: CheckError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> AnyDebug for T
impl<T> AnyDebug for T
source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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<S> IteratorOverTable for S
impl<S> IteratorOverTable for S
source§fn iter_all<M>(
&self,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(<M as Mappable>::OwnedKey, <M as Mappable>::OwnedValue), Error>>where
M: Mappable,
Self: IterableTable<M>,
fn iter_all<M>(
&self,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(<M as Mappable>::OwnedKey, <M as Mappable>::OwnedValue), Error>>where
M: Mappable,
Self: IterableTable<M>,
Returns an iterator over the all entries in the table.
source§fn iter_all_by_prefix<M, P>(
&self,
prefix: Option<P>,
) -> BoxedIter<'_, Result<(<M as Mappable>::OwnedKey, <M as Mappable>::OwnedValue), Error>>
fn iter_all_by_prefix<M, P>( &self, prefix: Option<P>, ) -> BoxedIter<'_, Result<(<M as Mappable>::OwnedKey, <M as Mappable>::OwnedValue), Error>>
Returns an iterator over the all entries in the table with the specified prefix.
source§fn iter_all_by_start<M>(
&self,
start: Option<&<M as Mappable>::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(<M as Mappable>::OwnedKey, <M as Mappable>::OwnedValue), Error>>where
M: Mappable,
Self: IterableTable<M>,
fn iter_all_by_start<M>(
&self,
start: Option<&<M as Mappable>::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(<M as Mappable>::OwnedKey, <M as Mappable>::OwnedValue), Error>>where
M: Mappable,
Self: IterableTable<M>,
Returns an iterator over the all entries in the table after a specific start key.
source§fn iter_all_filtered<M, P>(
&self,
prefix: Option<P>,
start: Option<&<M as Mappable>::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(<M as Mappable>::OwnedKey, <M as Mappable>::OwnedValue), Error>>
fn iter_all_filtered<M, P>( &self, prefix: Option<P>, start: Option<&<M as Mappable>::Key>, direction: Option<IterDirection>, ) -> BoxedIter<'_, Result<(<M as Mappable>::OwnedKey, <M as Mappable>::OwnedValue), Error>>
Returns an iterator over the all entries in the table with a prefix after a specific start key.