Enum sui::client_commands::SuiClientCommands
source · pub enum SuiClientCommands {
Show 34 variants
ActiveAddress,
ActiveEnv,
Addresses {
sort_by_alias: bool,
},
Balance {
address: Option<KeyIdentity>,
coin_type: Option<String>,
with_coins: bool,
},
Call {
package: ObjectID,
module: String,
function: String,
type_args: Vec<TypeTag>,
args: Vec<SuiJsonValue>,
gas_price: Option<u64>,
opts: OptsWithGas,
},
ChainIdentifier,
DynamicFieldQuery {
id: ObjectID,
cursor: Option<ObjectID>,
limit: usize,
},
Envs,
ExecuteSignedTx {
tx_bytes: String,
signatures: Vec<String>,
},
ExecuteCombinedSignedTx {
signed_tx_bytes: String,
},
Faucet {
address: Option<KeyIdentity>,
url: Option<String>,
},
Gas {
address: Option<KeyIdentity>,
},
MergeCoin {
primary_coin: ObjectID,
coin_to_merge: ObjectID,
opts: OptsWithGas,
},
NewAddress {
key_scheme: SignatureScheme,
alias: Option<String>,
word_length: Option<String>,
derivation_path: Option<DerivationPath>,
},
NewEnv {
alias: String,
rpc: String,
ws: Option<String>,
},
Object {
id: ObjectID,
bcs: bool,
},
Objects {
address: Option<KeyIdentity>,
},
Pay {
input_coins: Vec<ObjectID>,
recipients: Vec<KeyIdentity>,
amounts: Vec<u64>,
opts: OptsWithGas,
},
PayAllSui {
input_coins: Vec<ObjectID>,
recipient: KeyIdentity,
opts: Opts,
},
PaySui {
input_coins: Vec<ObjectID>,
recipients: Vec<KeyIdentity>,
amounts: Vec<u64>,
opts: Opts,
},
PTB(PTB),
Publish {
package_path: PathBuf,
build_config: BuildConfig,
opts: OptsWithGas,
skip_dependency_verification: bool,
with_unpublished_dependencies: bool,
},
SplitCoin {
coin_id: ObjectID,
amounts: Option<Vec<u64>>,
count: Option<u64>,
opts: OptsWithGas,
},
Switch {
address: Option<KeyIdentity>,
env: Option<String>,
},
TransactionBlock {
digest: TransactionDigest,
},
Transfer {
to: KeyIdentity,
object_id: ObjectID,
opts: OptsWithGas,
},
TransferSui {
to: KeyIdentity,
sui_coin_object_id: ObjectID,
amount: Option<u64>,
opts: Opts,
},
Upgrade {
package_path: PathBuf,
upgrade_capability: ObjectID,
build_config: BuildConfig,
opts: OptsWithGas,
skip_dependency_verification: bool,
with_unpublished_dependencies: bool,
},
VerifyBytecodeMeter {
package_path: Option<PathBuf>,
protocol_version: Option<u64>,
module_paths: Vec<PathBuf>,
build_config: BuildConfig,
},
VerifySource {
package_path: PathBuf,
build_config: BuildConfig,
verify_deps: bool,
skip_source: bool,
address_override: Option<ObjectID>,
},
ProfileTransaction {
tx_digest: String,
profile_output: Option<PathBuf>,
},
ReplayTransaction {
tx_digest: String,
gas_info: bool,
ptb_info: bool,
executor_version: Option<i64>,
protocol_version: Option<i64>,
},
ReplayBatch {
path: PathBuf,
terminate_early: bool,
},
ReplayCheckpoints {
start: u64,
end: u64,
terminate_early: bool,
},
}
Variants§
ActiveAddress
Default address used for commands when none specified
ActiveEnv
Default environment used for commands when none specified
Addresses
Obtain the Addresses managed by the client.
Balance
Fields
address: Option<KeyIdentity>
Address (or its alias)
List the coin balance of an address
Call
Fields
type_args: Vec<TypeTag>
Type arguments to the generic function being called. All must be specified, or the call will fail.
args: Vec<SuiJsonValue>
Simplified ordered args like in the function syntax ObjectIDs, Addresses must be hex strings
gas_price: Option<u64>
Optional gas price for this call. Currently use only for testing and not in production environments.
opts: OptsWithGas
Call Move function
ChainIdentifier
Query the chain identifier from the rpc endpoint.
DynamicFieldQuery
Fields
Query a dynamic field by its address.
Envs
List all Sui environments
ExecuteSignedTx
Fields
Execute a Signed Transaction. This is useful when the user prefers to sign elsewhere and use this command to execute.
ExecuteCombinedSignedTx
Fields
Execute a combined serialized SenderSignedData string.
Faucet
Request gas coin from faucet. By default, it will use the active address and the active network.
Gas
Fields
address: Option<KeyIdentity>
Address (or its alias) owning the objects
Obtain all gas objects owned by the address. An address’ alias can be used instead of the address.
MergeCoin
Fields
opts: OptsWithGas
Merge two coin objects into one coin
NewAddress
Fields
key_scheme: SignatureScheme
Generate new address and keypair with keypair scheme flag {ed25519 | secp256k1 | secp256r1} with optional derivation path, default to m/44’/784’/0’/0’/0’ for ed25519 or m/54’/784’/0’/0/0 for secp256k1 or m/74’/784’/0’/0/0 for secp256r1. Word length can be { word12 | word15 | word18 | word21 | word24} default to word12 if not specified.
NewEnv
Add new Sui environment.
Object
Fields
Get object info
Objects
Fields
address: Option<KeyIdentity>
Address owning the object. If no address is provided, it will show all
objects owned by sui client active-address
.
Obtain all objects owned by the address. It also accepts an address by its alias.
Pay
Fields
input_coins: Vec<ObjectID>
The input coins to be used for pay recipients, following the specified amounts.
recipients: Vec<KeyIdentity>
The recipient addresses, must be of same length as amounts. Aliases of addresses are also accepted as input.
opts: OptsWithGas
Pay coins to recipients following specified amounts, with input coins. Length of recipients must be the same as that of amounts.
PayAllSui
Fields
recipient: KeyIdentity
The recipient address (or its alias if it’s an address in the keystore).
Pay all residual SUI coins to the recipient with input coins, after deducting the gas cost. The input coins also include the coin for gas payment, so no extra gas coin is required.
PaySui
Fields
recipients: Vec<KeyIdentity>
The recipient addresses, must be of same length as amounts. Aliases of addresses are also accepted as input.
Pay SUI coins to recipients following following specified amounts, with input coins. Length of recipients must be the same as that of amounts. The input coins also include the coin for gas payment, so no extra gas coin is required.
PTB(PTB)
Run a PTB from the provided args
Publish
Fields
build_config: BuildConfig
Package build options
opts: OptsWithGas
Publish Move modules
SplitCoin
Fields
opts: OptsWithGas
Split a coin object into multiple coins.
Switch
Fields
address: Option<KeyIdentity>
An address to be used as the active address for subsequent commands. It accepts also the alias of the address.
Switch active address and network(e.g., devnet, local rpc server).
TransactionBlock
Fields
digest: TransactionDigest
Digest of the transaction block
Get the effects of executing the given transaction block
Transfer
Fields
to: KeyIdentity
Recipient address (or its alias if it’s an address in the keystore)
opts: OptsWithGas
Transfer object
TransferSui
Fields
to: KeyIdentity
Recipient address (or its alias if it’s an address in the keystore)
Transfer SUI, and pay gas with the same SUI coin object. If amount is specified, only the amount is transferred; otherwise the entire object is transferred.
Upgrade
Fields
build_config: BuildConfig
Package build options
opts: OptsWithGas
Upgrade Move modules
VerifyBytecodeMeter
Fields
package_path: Option<PathBuf>
Path to directory containing a Move package, (defaults to the current directory)
protocol_version: Option<u64>
Protocol version to use for the bytecode verifier (defaults to the latest protocol version)
module_paths: Vec<PathBuf>
Paths to specific pre-compiled module bytecode to verify (instead of an entire package). Multiple modules can be verified by passing multiple –module flags. They will be treated as if they were one package (subject to the overall package limit).
build_config: BuildConfig
Package build options
Run the bytecode verifier on the package
VerifySource
Fields
build_config: BuildConfig
Package build options
Verify local Move packages against on-chain packages, and optionally their dependencies.
ProfileTransaction
Fields
profile_output: Option<PathBuf>
If specified, overrides the filepath of the output profile, for example – /temp/my_profile_name.json will write output to /temp/my_profile_name_{tx_digest}_{unix_timestamp}.json
If an output filepath is not specified, it will output a file gas_profile_{tx_digest}_{unix_timestamp}.json
to the working directory
Profile the gas usage of a transaction. Unless an output filepath is not specified, outputs a file gas_profile_{tx_digest}_{unix_timestamp}.json
which can be opened in a flamegraph tool such as speedscope.
ReplayTransaction
Fields
Replay a given transaction to view transaction effects. Set environment variable MOVE_VM_STEP=1 to debug.
ReplayBatch
Fields
Replay transactions listed in a file.
ReplayCheckpoints
Fields
Replay all transactions in a range of checkpoints.
Implementations§
source§impl SuiClientCommands
impl SuiClientCommands
pub async fn execute( self, context: &mut WalletContext ) -> Result<SuiClientCommandResult, Error>
pub fn switch_env(config: &mut SuiClientConfig, env: &str) -> Result<(), Error>
Trait Implementations§
source§impl CommandFactory for SuiClientCommands
impl CommandFactory for SuiClientCommands
source§impl FromArgMatches for SuiClientCommands
impl FromArgMatches for SuiClientCommands
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§impl Parser for SuiClientCommands
impl Parser for SuiClientCommands
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
source§impl Subcommand for SuiClientCommands
impl Subcommand for SuiClientCommands
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommandAuto Trait Implementations§
impl RefUnwindSafe for SuiClientCommands
impl Send for SuiClientCommands
impl Sync for SuiClientCommands
impl Unpin for SuiClientCommands
impl UnwindSafe for SuiClientCommands
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§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.§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.§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.§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.§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.§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.§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.§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.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg
or
a color-specific method, such as OwoColorize::green
, Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg
or
a color-specific method, such as OwoColorize::on_yellow
, Read more§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§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 more§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 more§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
§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
§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.§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.§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.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§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 more§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 more§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 more§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 more§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 more§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 more§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.§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.§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.§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.§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.§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.§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.