ExecutionFailureStatus

Enum ExecutionFailureStatus 

#[non_exhaustive]
pub enum ExecutionFailureStatus {
Show 39 variants InsufficientGas, InvalidGasObject, InvariantViolation, FeatureNotYetSupported, ObjectTooBig { object_size: u64, max_object_size: u64, }, PackageTooBig { object_size: u64, max_object_size: u64, }, CircularObjectOwnership { object: ObjectId, }, InsufficientCoinBalance, CoinBalanceOverflow, PublishErrorNonZeroAddress, IotaMoveVerificationError, MovePrimitiveRuntimeError { location: Option<MoveLocation>, }, MoveAbort { location: MoveLocation, code: u64, }, VmVerificationOrDeserializationError, VmInvariantViolation, FunctionNotFound, ArityMismatch, TypeArityMismatch, NonEntryFunctionInvoked, CommandArgumentError { argument: u16, kind: CommandArgumentError, }, TypeArgumentError { type_argument: u16, kind: TypeArgumentError, }, UnusedValueWithoutDrop { result: u16, subresult: u16, }, InvalidPublicFunctionReturnType { index: u16, }, InvalidTransferObject, EffectsTooLarge { current_size: u64, max_size: u64, }, PublishUpgradeMissingDependency, PublishUpgradeDependencyDowngrade, PackageUpgradeError { kind: PackageUpgradeError, }, WrittenObjectsTooLarge { object_size: u64, max_object_size: u64, }, CertificateDenied, IotaMoveVerificationTimeout, SharedObjectOperationNotAllowed, InputObjectDeleted, ExecutionCancelledDueToSharedObjectCongestion { congested_objects: Vec<ObjectId>, }, AddressDeniedForCoin { address: Address, coin_type: String, }, CoinTypeGlobalPause { coin_type: String, }, ExecutionCancelledDueToRandomnessUnavailable, ExecutionCancelledDueToSharedObjectCongestionV2 { congested_objects: Vec<ObjectId>, suggested_gas_price: u64, }, InvalidLinkage,
}
Expand description

An error that can occur during the execution of a transaction

§BCS

The BCS serialized form for this type is defined by the following ABNF:

 
execution-error =  insufficient-gas
                =/ invalid-gas-object
                =/ invariant-violation
                =/ feature-not-yet-supported
                =/ object-too-big
                =/ package-too-big
                =/ circular-object-ownership
                =/ insufficient-coin-balance
                =/ coin-balance-overflow
                =/ publish-error-non-zero-address
                =/ iota-move-verification-error
                =/ move-primitive-runtime-error
                =/ move-abort
                =/ vm-verification-or-deserialization-error
                =/ vm-invariant-violation
                =/ function-not-found
                =/ arity-mismatch
                =/ type-arity-mismatch
                =/ non-entry-function-invoked
                =/ command-argument-error
                =/ type-argument-error
                =/ unused-value-without-drop
                =/ invalid-public-function-return-type
                =/ invalid-transfer-object
                =/ effects-too-large
                =/ publish-upgrade-missing-dependency
                =/ publish-upgrade-dependency-downgrade
                =/ package-upgrade-error
                =/ written-objects-too-large
                =/ certificate-denied
                =/ iota-move-verification-timeout
                =/ shared-object-operation-not-allowed
                =/ input-object-deleted
                =/ execution-cancelled-due-to-shared-object-congestion
                =/ address-denied-for-coin
                =/ coin-type-global-pause
                =/ execution-cancelled-due-to-randomness-unavailable
                =/ execution-cancelled-due-to-shared-object-congestion-v2
                =/ invalid-linkage

insufficient-gas                                       = %d00
invalid-gas-object                                     = %d01
invariant-violation                                    = %d02
feature-not-yet-supported                              = %d03
object-too-big                                         = %d04 u64 u64
package-too-big                                        = %d05 u64 u64
circular-object-ownership                              = %d06 object-id
insufficient-coin-balance                              = %d07
coin-balance-overflow                                  = %d08
publish-error-non-zero-address                         = %d09
iota-move-verification-error                           = %d10
move-primitive-runtime-error                           = %d11 (option move-location)
move-abort                                             = %d12 move-location u64
vm-verification-or-deserialization-error               = %d13
vm-invariant-violation                                 = %d14
function-not-found                                     = %d15
arity-mismatch                                         = %d16
type-arity-mismatch                                    = %d17
non-entry-function-invoked                             = %d18
command-argument-error                                 = %d19 u16 command-argument-error
type-argument-error                                    = %d20 u16 type-argument-error
unused-value-without-drop                              = %d21 u16 u16
invalid-public-function-return-type                    = %d22 u16
invalid-transfer-object                                = %d23
effects-too-large                                      = %d24 u64 u64
publish-upgrade-missing-dependency                     = %d25
publish-upgrade-dependency-downgrade                   = %d26
package-upgrade-error                                  = %d27 package-upgrade-error
written-objects-too-large                              = %d28 u64 u64
certificate-denied                                     = %d29
iota-move-verification-timeout                         = %d30
shared-object-operation-not-allowed                    = %d31
input-object-deleted                                   = %d32
execution-cancelled-due-to-shared-object-congestion    = %d33 (vector object-id)
address-denied-for-coin                                = %d34 address string
coin-type-global-pause                                 = %d35 string
execution-cancelled-due-to-randomness-unavailable      = %d36
execution-cancelled-due-to-shared-object-congestion-v2 = %d37 (vector object-id) u64
invalid-linkage                                        = %d38

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.
§

InsufficientGas

Insufficient Gas

§

InvalidGasObject

Invalid Gas Object.

§

InvariantViolation

Invariant Violation

§

FeatureNotYetSupported

Attempted to use feature that is not supported yet

§

ObjectTooBig

Move object is larger than the maximum allowed size

Fields

§object_size: u64
§max_object_size: u64
§

PackageTooBig

Package is larger than the maximum allowed size

Fields

§object_size: u64
§max_object_size: u64
§

CircularObjectOwnership

Circular Object Ownership

Fields

§object: ObjectId
§

InsufficientCoinBalance

Insufficient coin balance for requested operation

§

CoinBalanceOverflow

Coin balance overflowed an u64

§

PublishErrorNonZeroAddress

Publish Error, Non-zero Address. The modules in the package must have their self-addresses set to zero.

§

IotaMoveVerificationError

IOTA Move Bytecode Verification Error.

§

MovePrimitiveRuntimeError

Error from a non-abort instruction. Possible causes: Arithmetic error, stack overflow, max value depth, etc.“

Fields

§

MoveAbort

Move runtime abort

Fields

§location: MoveLocation
§code: u64
§

VmVerificationOrDeserializationError

Bytecode verification error.

§

VmInvariantViolation

MoveVm invariant violation

§

FunctionNotFound

Function not found

§

ArityMismatch

Arity mismatch for Move function. The number of arguments does not match the number of parameters

§

TypeArityMismatch

Type arity mismatch for Move function. Mismatch between the number of actual versus expected type arguments.

§

NonEntryFunctionInvoked

Non Entry Function Invoked. Move Call must start with an entry function.

§

CommandArgumentError

Invalid command argument

Fields

§argument: u16
§

TypeArgumentError

Type argument error

Fields

§type_argument: u16

Index of the problematic type argument

§

UnusedValueWithoutDrop

Unused result without the drop ability.

Fields

§result: u16
§subresult: u16
§

InvalidPublicFunctionReturnType

Invalid public Move function signature. Unsupported return type for return value

Fields

§index: u16
§

InvalidTransferObject

Invalid Transfer Object, object does not have public transfer.

§

EffectsTooLarge

Effects from the transaction are too large

Fields

§current_size: u64
§max_size: u64
§

PublishUpgradeMissingDependency

Publish or Upgrade is missing dependency

§

PublishUpgradeDependencyDowngrade

Publish or Upgrade dependency downgrade.

Indirect (transitive) dependency of published or upgraded package has been assigned an on-chain version that is less than the version required by one of the package’s transitive dependencies.

§

PackageUpgradeError

Invalid package upgrade

§

WrittenObjectsTooLarge

Indicates the transaction tried to write objects too large to storage

Fields

§object_size: u64
§max_object_size: u64
§

CertificateDenied

Certificate is on the deny list

§

IotaMoveVerificationTimeout

IOTA Move Bytecode verification timed out.

§

SharedObjectOperationNotAllowed

The requested shared object operation is not allowed

§

InputObjectDeleted

Requested shared object has been deleted

§

ExecutionCancelledDueToSharedObjectCongestion

Certificate is cancelled due to congestion on shared objects

Fields

§congested_objects: Vec<ObjectId>
§

AddressDeniedForCoin

Address is denied for this coin type

Fields

§address: Address
§coin_type: String
§

CoinTypeGlobalPause

Coin type is globally paused for use

Fields

§coin_type: String
§

ExecutionCancelledDueToRandomnessUnavailable

Certificate is cancelled because randomness could not be generated this epoch

§

ExecutionCancelledDueToSharedObjectCongestionV2

Certificate is cancelled due to congestion on shared objects; suggested gas price can be used to give this certificate more priority.

Fields

§congested_objects: Vec<ObjectId>
§suggested_gas_price: u64
§

InvalidLinkage

A valid linkage was unable to be determined for the transaction or one of its commands.

Implementations§

§

impl ExecutionError

pub fn is_insufficient_gas(&self) -> bool

Checks if this is a insufficient_gas variant.

pub fn is_invalid_gas_object(&self) -> bool

Checks if this is a invalid_gas_object variant.

pub fn is_invariant_violation(&self) -> bool

Checks if this is a invariant_violation variant.

pub fn is_feature_not_yet_supported(&self) -> bool

Checks if this is a feature_not_yet_supported variant.

pub fn is_object_too_big(&self) -> bool

Checks if this is a object_too_big variant.

pub fn is_package_too_big(&self) -> bool

Checks if this is a package_too_big variant.

pub fn is_circular_object_ownership(&self) -> bool

Checks if this is a circular_object_ownership variant.

pub fn is_insufficient_coin_balance(&self) -> bool

Checks if this is a insufficient_coin_balance variant.

pub fn is_coin_balance_overflow(&self) -> bool

Checks if this is a coin_balance_overflow variant.

pub fn is_publish_error_non_zero_address(&self) -> bool

Checks if this is a publish_error_non_zero_address variant.

pub fn is_iota_move_verification_error(&self) -> bool

Checks if this is a iota_move_verification_error variant.

pub fn is_move_primitive_runtime_error(&self) -> bool

Checks if this is a move_primitive_runtime_error variant.

pub fn is_move_abort(&self) -> bool

Checks if this is a move_abort variant.

pub fn is_vm_verification_or_deserialization_error(&self) -> bool

Checks if this is a vm_verification_or_deserialization_error variant.

pub fn is_vm_invariant_violation(&self) -> bool

Checks if this is a vm_invariant_violation variant.

pub fn is_function_not_found(&self) -> bool

Checks if this is a function_not_found variant.

pub fn is_arity_mismatch(&self) -> bool

Checks if this is a arity_mismatch variant.

pub fn is_type_arity_mismatch(&self) -> bool

Checks if this is a type_arity_mismatch variant.

pub fn is_non_entry_function_invoked(&self) -> bool

Checks if this is a non_entry_function_invoked variant.

pub fn is_command_argument_error(&self) -> bool

Checks if this is a command_argument_error variant.

pub fn is_type_argument_error(&self) -> bool

Checks if this is a type_argument_error variant.

pub fn is_unused_value_without_drop(&self) -> bool

Checks if this is a unused_value_without_drop variant.

pub fn is_invalid_public_function_return_type(&self) -> bool

Checks if this is a invalid_public_function_return_type variant.

pub fn is_invalid_transfer_object(&self) -> bool

Checks if this is a invalid_transfer_object variant.

pub fn is_effects_too_large(&self) -> bool

Checks if this is a effects_too_large variant.

pub fn is_publish_upgrade_missing_dependency(&self) -> bool

Checks if this is a publish_upgrade_missing_dependency variant.

pub fn is_publish_upgrade_dependency_downgrade(&self) -> bool

Checks if this is a publish_upgrade_dependency_downgrade variant.

pub fn is_package_upgrade_error(&self) -> bool

Checks if this is a package_upgrade_error variant.

pub fn is_written_objects_too_large(&self) -> bool

Checks if this is a written_objects_too_large variant.

pub fn is_certificate_denied(&self) -> bool

Checks if this is a certificate_denied variant.

pub fn is_iota_move_verification_timeout(&self) -> bool

Checks if this is a iota_move_verification_timeout variant.

pub fn is_shared_object_operation_not_allowed(&self) -> bool

Checks if this is a shared_object_operation_not_allowed variant.

pub fn is_input_object_deleted(&self) -> bool

Checks if this is a input_object_deleted variant.

pub fn is_execution_cancelled_due_to_shared_object_congestion(&self) -> bool

Checks if this is a execution_cancelled_due_to_shared_object_congestion variant.

pub fn is_address_denied_for_coin(&self) -> bool

Checks if this is a address_denied_for_coin variant.

pub fn is_coin_type_global_pause(&self) -> bool

Checks if this is a coin_type_global_pause variant.

pub fn is_execution_cancelled_due_to_randomness_unavailable(&self) -> bool

Checks if this is a execution_cancelled_due_to_randomness_unavailable variant.

pub fn is_execution_cancelled_due_to_shared_object_congestion_v2(&self) -> bool

Checks if this is a execution_cancelled_due_to_shared_object_congestion_v2 variant.

pub fn is_invalid_linkage(&self) -> bool

Checks if this is a invalid_linkage variant.

pub fn command_argument_error( kind: CommandArgumentError, argument: u16, ) -> ExecutionError

Trait Implementations§

§

impl Arbitrary for ExecutionError

§

type Parameters = ()

The type of parameters that arbitrary_with accepts for configuration of the generated Strategy. Parameters must implement Default.
§

type Strategy = BoxedStrategy<ExecutionError>

The type of Strategy used to generate values of type Self.
§

fn arbitrary_with( args_shared: <ExecutionError as Arbitrary>::Parameters, ) -> <ExecutionError as Arbitrary>::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more
§

fn arbitrary() -> Self::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). Read more
§

impl Clone for ExecutionError

§

fn clone(&self) -> ExecutionError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ExecutionError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for ExecutionError

§

fn deserialize<D>( deserializer: D, ) -> Result<ExecutionError, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for ExecutionError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ExecutionError

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ExecutionError> for ExecutionError

Source§

fn from(kind: ExecutionErrorKind) -> Self

Converts to this type from the input type.
Source§

impl From<ExecutionError> for IotaError

Source§

fn from(kind: ExecutionErrorKind) -> Self

Converts to this type from the input type.
§

impl PartialEq for ExecutionError

§

fn eq(&self, other: &ExecutionError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Serialize for ExecutionError

§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for ExecutionError

§

impl StructuralPartialEq for ExecutionError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<U> As for U

§

fn as_<T>(self) -> T
where T: CastFrom<U>,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a Request
§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<T> ToStringFallible for T
where T: Display,

§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T