pub struct TransactionApi;Implementations§
Source§impl TransactionApi
impl TransactionApi
Sourcepub fn bond(&self, value: Value, payee: Payee) -> StaticPayload<Bond>
pub fn bond(&self, value: Value, payee: Payee) -> StaticPayload<Bond>
Take the origin account as a stash and lock up value of its balance. controller will
be the account that controls it.
value must be more than the minimum_balance specified by T::Currency.
The dispatch origin for this call must be Signed by the stash account.
Emits Bonded.
§Complexity
- Independent of the arguments. Moderate complexity.
- O(1).
- Three extra DB entries.
NOTE: Two of the storage writes (Self::bonded, Self::payee) are never cleaned
unless the origin falls below existential deposit (or equal to 0) and gets removed
as dust.
Sourcepub fn bond_extra(
&self,
max_additional: MaxAdditional,
) -> StaticPayload<BondExtra>
pub fn bond_extra( &self, max_additional: MaxAdditional, ) -> StaticPayload<BondExtra>
Add some extra amount that have appeared in the stash free_balance into the balance up
for staking.
The dispatch origin for this call must be Signed by the stash, not the controller.
Use this if there are additional funds in your stash account that you wish to bond.
Unlike bond or unbond this function does not impose
any limitation on the amount that can be added.
Emits Bonded.
§Complexity
- Independent of the arguments. Insignificant complexity.
- O(1).
Sourcepub fn unbond(&self, value: Value) -> StaticPayload<Unbond>
pub fn unbond(&self, value: Value) -> StaticPayload<Unbond>
Schedule a portion of the stash to be unlocked ready for transfer out after the bond period ends. If this leaves an amount actively bonded less than T::Currency::minimum_balance(), then it is increased to the full amount.
The dispatch origin for this call must be Signed by the controller, not the stash.
Once the unlock period is done, you can call withdraw_unbonded to actually move
the funds out of management ready for transfer.
No more than a limited number of unlocking chunks (see MaxUnlockingChunks)
can co-exists at the same time. If there are no unlocking chunks slots available
[Call::withdraw_unbonded] is called to remove some of the chunks (if possible).
If a user encounters the InsufficientBond error when calling this extrinsic,
they should call chill first in order to free up their bonded funds.
Emits Unbonded.
See also [Call::withdraw_unbonded].
Sourcepub fn withdraw_unbonded(
&self,
num_slashing_spans: NumSlashingSpans,
) -> StaticPayload<WithdrawUnbonded>
pub fn withdraw_unbonded( &self, num_slashing_spans: NumSlashingSpans, ) -> StaticPayload<WithdrawUnbonded>
Remove any unlocked chunks from the unlocking queue from our management.
This essentially frees up that balance to be used by the stash account to do whatever it wants.
The dispatch origin for this call must be Signed by the controller.
Emits Withdrawn.
See also [Call::unbond].
§Parameters
num_slashing_spansindicates the number of metadata slashing spans to clear when this call results in a complete removal of all the data related to the stash account. In this case, thenum_slashing_spansmust be larger or equal to the number of slashing spans associated with the stash account in the [SlashingSpans] storage type, otherwise the call will fail. The call weight is directly proportional tonum_slashing_spans.
§Complexity
O(S) where S is the number of slashing spans to remove NOTE: Weight annotation is the kill scenario, we refund otherwise.
Sourcepub fn validate(&self, prefs: Prefs) -> StaticPayload<Validate>
pub fn validate(&self, prefs: Prefs) -> StaticPayload<Validate>
Declare the desire to validate for the origin controller.
Effects will be felt at the beginning of the next era.
The dispatch origin for this call must be Signed by the controller, not the stash.
Sourcepub fn nominate(&self, targets: Targets) -> StaticPayload<Nominate>
pub fn nominate(&self, targets: Targets) -> StaticPayload<Nominate>
Declare the desire to nominate targets for the origin controller.
Effects will be felt at the beginning of the next era.
The dispatch origin for this call must be Signed by the controller, not the stash.
§Complexity
- The transaction’s complexity is proportional to the size of
targets(N) which is capped at CompactAssignments::LIMIT (T::MaxNominations). - Both the reads and writes follow a similar pattern.
Sourcepub fn chill(&self) -> StaticPayload<Chill>
pub fn chill(&self) -> StaticPayload<Chill>
Declare no desire to either validate or nominate.
Effects will be felt at the beginning of the next era.
The dispatch origin for this call must be Signed by the controller, not the stash.
§Complexity
- Independent of the arguments. Insignificant complexity.
- Contains one read.
- Writes are limited to the
originaccount key.
Sourcepub fn set_payee(&self, payee: Payee) -> StaticPayload<SetPayee>
pub fn set_payee(&self, payee: Payee) -> StaticPayload<SetPayee>
(Re-)set the payment target for a controller.
Effects will be felt instantly (as soon as this function is completed successfully).
The dispatch origin for this call must be Signed by the controller, not the stash.
§Complexity
- O(1)
- Independent of the arguments. Insignificant complexity.
- Contains a limited number of reads.
- Writes are limited to the
originaccount key.
Sourcepub fn set_controller(&self) -> StaticPayload<SetController>
pub fn set_controller(&self) -> StaticPayload<SetController>
(Re-)sets the controller of a stash to the stash itself. This function previously
accepted a controller argument to set the controller to an account other than the
stash itself. This functionality has now been removed, now only setting the controller
to the stash, if it is not already.
Effects will be felt instantly (as soon as this function is completed successfully).
The dispatch origin for this call must be Signed by the stash, not the controller.
§Complexity
O(1)
- Independent of the arguments. Insignificant complexity.
- Contains a limited number of reads.
- Writes are limited to the
originaccount key.
Sourcepub fn set_validator_count(&self, new: New) -> StaticPayload<SetValidatorCount>
pub fn set_validator_count(&self, new: New) -> StaticPayload<SetValidatorCount>
Sourcepub fn increase_validator_count(
&self,
additional: Additional,
) -> StaticPayload<IncreaseValidatorCount>
pub fn increase_validator_count( &self, additional: Additional, ) -> StaticPayload<IncreaseValidatorCount>
Increments the ideal number of validators up to maximum of
ElectionProviderBase::MaxWinners.
The dispatch origin must be Root.
§Complexity
Same as Self::set_validator_count.
Sourcepub fn scale_validator_count(
&self,
factor: Factor,
) -> StaticPayload<ScaleValidatorCount>
pub fn scale_validator_count( &self, factor: Factor, ) -> StaticPayload<ScaleValidatorCount>
Scale up the ideal number of validators by a factor up to maximum of
ElectionProviderBase::MaxWinners.
The dispatch origin must be Root.
§Complexity
Same as Self::set_validator_count.
Sourcepub fn force_no_eras(&self) -> StaticPayload<ForceNoEras>
pub fn force_no_eras(&self) -> StaticPayload<ForceNoEras>
Force there to be no new eras indefinitely.
The dispatch origin must be Root.
§Warning
The election process starts multiple blocks before the end of the era. Thus the election process may be ongoing when this is called. In this case the election will continue until the next era is triggered.
§Complexity
- No arguments.
- Weight: O(1)
Sourcepub fn force_new_era(&self) -> StaticPayload<ForceNewEra>
pub fn force_new_era(&self) -> StaticPayload<ForceNewEra>
Force there to be a new era at the end of the next session. After this, it will be reset to normal (non-forced) behaviour.
The dispatch origin must be Root.
§Warning
The election process starts multiple blocks before the end of the era. If this is called just before a new era is triggered, the election process may not have enough blocks to get a result.
§Complexity
- No arguments.
- Weight: O(1)
Sourcepub fn set_invulnerables(
&self,
invulnerables: Invulnerables,
) -> StaticPayload<SetInvulnerables>
pub fn set_invulnerables( &self, invulnerables: Invulnerables, ) -> StaticPayload<SetInvulnerables>
Set the validators who cannot be slashed (if any).
The dispatch origin must be Root.
Sourcepub fn force_unstake(
&self,
stash: Stash,
num_slashing_spans: NumSlashingSpans,
) -> StaticPayload<ForceUnstake>
pub fn force_unstake( &self, stash: Stash, num_slashing_spans: NumSlashingSpans, ) -> StaticPayload<ForceUnstake>
Force a current staker to become completely unstaked, immediately.
The dispatch origin must be Root.
§Parameters
num_slashing_spans: Refer to comments on [Call::withdraw_unbonded] for more details.
Sourcepub fn force_new_era_always(&self) -> StaticPayload<ForceNewEraAlways>
pub fn force_new_era_always(&self) -> StaticPayload<ForceNewEraAlways>
Force there to be a new era at the end of sessions indefinitely.
The dispatch origin must be Root.
§Warning
The election process starts multiple blocks before the end of the era. If this is called just before a new era is triggered, the election process may not have enough blocks to get a result.
Sourcepub fn cancel_deferred_slash(
&self,
era: Era,
slash_indices: SlashIndices,
) -> StaticPayload<CancelDeferredSlash>
pub fn cancel_deferred_slash( &self, era: Era, slash_indices: SlashIndices, ) -> StaticPayload<CancelDeferredSlash>
Cancel enactment of a deferred slash.
Can be called by the T::AdminOrigin.
Parameters: era and indices of the slashes for that era to kill.
Sourcepub fn payout_stakers(
&self,
validator_stash: ValidatorStash,
era: Era,
) -> StaticPayload<PayoutStakers>
pub fn payout_stakers( &self, validator_stash: ValidatorStash, era: Era, ) -> StaticPayload<PayoutStakers>
Pay out next page of the stakers behind a validator for the given era.
validator_stashis the stash account of the validator.eramay be any era between[current_era - history_depth; current_era].
The origin of this call must be Signed. Any account can call this function, even if it is not one of the stakers.
The reward payout could be paged in case there are too many nominators backing the
validator_stash. This call will payout unpaid pages in an ascending order. To claim a
specific page, use payout_stakers_by_page.`
If all pages are claimed, it returns an error InvalidPage.
Sourcepub fn rebond(&self, value: Value) -> StaticPayload<Rebond>
pub fn rebond(&self, value: Value) -> StaticPayload<Rebond>
Rebond a portion of the stash scheduled to be unlocked.
The dispatch origin must be signed by the controller.
§Complexity
- Time complexity: O(L), where L is unlocking chunks
- Bounded by
MaxUnlockingChunks.
Sourcepub fn reap_stash(
&self,
stash: Stash,
num_slashing_spans: NumSlashingSpans,
) -> StaticPayload<ReapStash>
pub fn reap_stash( &self, stash: Stash, num_slashing_spans: NumSlashingSpans, ) -> StaticPayload<ReapStash>
Remove all data structures concerning a staker/stash once it is at a state where it can
be considered dust in the staking system. The requirements are:
- the
total_balanceof the stash is below existential deposit. - or, the
ledger.totalof the stash is below existential deposit. - or, existential deposit is zero and either
total_balanceorledger.totalis zero.
The former can happen in cases like a slash; the latter when a fully unbonded account
is still receiving staking rewards in RewardDestination::Staked.
It can be called by anyone, as long as stash meets the above requirements.
Refunds the transaction fees upon successful execution.
§Parameters
num_slashing_spans: Refer to comments on [Call::withdraw_unbonded] for more details.
Sourcepub fn kick(&self, who: Who) -> StaticPayload<Kick>
pub fn kick(&self, who: Who) -> StaticPayload<Kick>
Remove the given nominations from the calling validator.
Effects will be felt at the beginning of the next era.
The dispatch origin for this call must be Signed by the controller, not the stash.
who: A list of nominator stash accounts who are nominating this validator which should no longer be nominating this validator.
Note: Making this call only makes sense if you first set the validator preferences to block any further nominations.
Sourcepub fn set_staking_configs(
&self,
min_nominator_bond: MinNominatorBond,
min_validator_bond: MinValidatorBond,
max_nominator_count: MaxNominatorCount,
max_validator_count: MaxValidatorCount,
chill_threshold: ChillThreshold,
min_commission: MinCommission,
max_staked_rewards: MaxStakedRewards,
) -> StaticPayload<SetStakingConfigs>
pub fn set_staking_configs( &self, min_nominator_bond: MinNominatorBond, min_validator_bond: MinValidatorBond, max_nominator_count: MaxNominatorCount, max_validator_count: MaxValidatorCount, chill_threshold: ChillThreshold, min_commission: MinCommission, max_staked_rewards: MaxStakedRewards, ) -> StaticPayload<SetStakingConfigs>
Update the various staking configurations .
min_nominator_bond: The minimum active bond needed to be a nominator.min_validator_bond: The minimum active bond needed to be a validator.max_nominator_count: The max number of users who can be a nominator at once. When set toNone, no limit is enforced.max_validator_count: The max number of users who can be a validator at once. When set toNone, no limit is enforced.chill_threshold: The ratio ofmax_nominator_countormax_validator_countwhich should be filled in order for thechill_othertransaction to work.min_commission: The minimum amount of commission that each validators must maintain. This is checked only upon callingvalidate. Existing validators are not affected.
RuntimeOrigin must be Root to call this function.
NOTE: Existing nominators and validators will not be affected by this update.
to kick people under the new limits, chill_other should be called.
Sourcepub fn chill_other(&self, stash: Stash) -> StaticPayload<ChillOther>
pub fn chill_other(&self, stash: Stash) -> StaticPayload<ChillOther>
Declare a controller to stop participating as either a validator or nominator.
Effects will be felt at the beginning of the next era.
The dispatch origin for this call must be Signed, but can be called by anyone.
If the caller is the same as the controller being targeted, then no further checks are
enforced, and this function behaves just like chill.
If the caller is different than the controller being targeted, the following conditions must be met:
controllermust belong to a nominator who has become non-decodable,
Or:
- A
ChillThresholdmust be set and checked which defines how close to the max nominators or validators we must reach before users can start chilling one-another. - A
MaxNominatorCountandMaxValidatorCountmust be set which is used to determine how close we are to the threshold. - A
MinNominatorBondandMinValidatorBondmust be set and checked, which determines if this is a person that should be chilled because they have not met the threshold bond required.
This can be helpful if bond requirements are updated, and we need to remove old users who do not satisfy these requirements.
Sourcepub fn force_apply_min_commission(
&self,
validator_stash: ValidatorStash,
) -> StaticPayload<ForceApplyMinCommission>
pub fn force_apply_min_commission( &self, validator_stash: ValidatorStash, ) -> StaticPayload<ForceApplyMinCommission>
Force a validator to have at least the minimum commission. This will not affect a validator who already has a commission greater than or equal to the minimum. Any account can call this.
Sourcepub fn set_min_commission(&self, new: New) -> StaticPayload<SetMinCommission>
pub fn set_min_commission(&self, new: New) -> StaticPayload<SetMinCommission>
Sets the minimum amount of commission that each validators must maintain.
This call has lower privilege requirements than set_staking_config and can be called
by the T::AdminOrigin. Root can always call this.
Sourcepub fn payout_stakers_by_page(
&self,
validator_stash: ValidatorStash,
era: Era,
page: Page,
) -> StaticPayload<PayoutStakersByPage>
pub fn payout_stakers_by_page( &self, validator_stash: ValidatorStash, era: Era, page: Page, ) -> StaticPayload<PayoutStakersByPage>
Pay out a page of the stakers behind a validator for the given era and page.
validator_stashis the stash account of the validator.eramay be any era between[current_era - history_depth; current_era].pageis the page index of nominators to pay out with value between 0 andnum_nominators / T::MaxExposurePageSize.
The origin of this call must be Signed. Any account can call this function, even if it is not one of the stakers.
If a validator has more than [Config::MaxExposurePageSize] nominators backing
them, then the list of nominators is paged, with each page being capped at
[Config::MaxExposurePageSize.] If a validator has more than one page of nominators,
the call needs to be made for each page separately in order for all the nominators
backing a validator to receive the reward. The nominators are not sorted across pages
and so it should not be assumed the highest staker would be on the topmost page and vice
versa. If rewards are not claimed in [Config::HistoryDepth] eras, they are lost.
Sourcepub fn update_payee(&self, controller: Controller) -> StaticPayload<UpdatePayee>
pub fn update_payee(&self, controller: Controller) -> StaticPayload<UpdatePayee>
Migrates an account’s RewardDestination::Controller to
RewardDestination::Account(controller).
Effects will be felt instantly (as soon as this function is completed successfully).
This will waive the transaction fee if the payee is successfully migrated.
Sourcepub fn deprecate_controller_batch(
&self,
controllers: Controllers,
) -> StaticPayload<DeprecateControllerBatch>
pub fn deprecate_controller_batch( &self, controllers: Controllers, ) -> StaticPayload<DeprecateControllerBatch>
Updates a batch of controller accounts to their corresponding stash account if they are not the same. Ignores any controller accounts that do not exist, and does not operate if the stash and controller are already the same.
Effects will be felt instantly (as soon as this function is completed successfully).
The dispatch origin must be T::AdminOrigin.
Sourcepub fn restore_ledger(
&self,
stash: Stash,
maybe_controller: MaybeController,
maybe_total: MaybeTotal,
maybe_unlocking: MaybeUnlocking,
) -> StaticPayload<RestoreLedger>
pub fn restore_ledger( &self, stash: Stash, maybe_controller: MaybeController, maybe_total: MaybeTotal, maybe_unlocking: MaybeUnlocking, ) -> StaticPayload<RestoreLedger>
Restores the state of a ledger which is in an inconsistent state.
The requirements to restore a ledger are the following:
- The stash is bonded; or
- The stash is not bonded but it has a staking lock left behind; or
- If the stash has an associated ledger and its state is inconsistent; or
- If the ledger is not corrupted but its staking lock is out of sync.
The maybe_* input parameters will overwrite the corresponding data and metadata of the
ledger associated with the stash. If the input parameters are not set, the ledger will
be reset values from on-chain state.
Auto Trait Implementations§
impl Freeze for TransactionApi
impl RefUnwindSafe for TransactionApi
impl Send for TransactionApi
impl Sync for TransactionApi
impl Unpin for TransactionApi
impl UnwindSafe for TransactionApi
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
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.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>
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>
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> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.