pub struct RenegadeClient {
pub config: RenegadeClientConfig,
pub secrets: AccountSecrets,
pub relayer_client: RelayerHttpClient,
pub admin_relayer_client: Option<RelayerHttpClient>,
pub historical_state_client: Arc<RelayerHttpClient>,
pub websocket_client: RenegadeWebsocketClient,
}Expand description
The Renegade wallet client
Fields§
§config: RenegadeClientConfigThe client config
secrets: AccountSecretsThe account secrets
relayer_client: RelayerHttpClientThe relayer HTTP client
admin_relayer_client: Option<RelayerHttpClient>The admin relayer HTTP client
historical_state_client: Arc<RelayerHttpClient>The historical state HTTP client.
Also a RelayerHttpClient as it mirrors the relayer’s historical state
API.
websocket_client: RenegadeWebsocketClientThe websocket client
Implementations§
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn admin_assign_order_to_pool(
&self,
_order_id: Uuid,
_matching_pool: String,
) -> Result<(), RenegadeClientError>
pub async fn admin_assign_order_to_pool( &self, _order_id: Uuid, _matching_pool: String, ) -> Result<(), RenegadeClientError>
Assigns an order to a specific matching pool via the admin API.
This is an admin action that requires the client to be configured with an admin HMAC key.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn admin_create_matching_pool(
&self,
matching_pool: String,
) -> Result<(), RenegadeClientError>
pub async fn admin_create_matching_pool( &self, matching_pool: String, ) -> Result<(), RenegadeClientError>
Creates a new matching pool via the admin API.
Orders can only be matched with other orders in the same matching pool. If the specified matching pool already exists, this is a no-op.
This is an admin action that requires the client to be configured with an admin HMAC key.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn admin_get_account_orders(
&self,
account_id: Uuid,
) -> Result<Vec<ApiAdminOrder>, RenegadeClientError>
pub async fn admin_get_account_orders( &self, account_id: Uuid, ) -> Result<Vec<ApiAdminOrder>, RenegadeClientError>
Fetches all orders for the given account (admin).
This method will paginate through all of the account’s orders across multiple requests, returning them all.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn admin_get_open_orders(
&self,
) -> Result<Vec<ApiAdminOrder>, RenegadeClientError>
pub async fn admin_get_open_orders( &self, ) -> Result<Vec<ApiAdminOrder>, RenegadeClientError>
Fetches all open orders managed by the relayer.
This method will paginate through all of the orders across multiple requests, returning them all.
Sourcepub async fn admin_get_open_orders_in_matching_pool(
&self,
matching_pool: String,
) -> Result<Vec<ApiAdminOrder>, RenegadeClientError>
pub async fn admin_get_open_orders_in_matching_pool( &self, matching_pool: String, ) -> Result<Vec<ApiAdminOrder>, RenegadeClientError>
Fetches all open orders managed by the relayer in the given matching pool.
This method will paginate through all of the orders across multiple requests, returning them all.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn admin_get_order(
&self,
order_id: Uuid,
) -> Result<ApiAdminOrder, RenegadeClientError>
pub async fn admin_get_order( &self, order_id: Uuid, ) -> Result<ApiAdminOrder, RenegadeClientError>
Look up an order by its ID
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn admin_is_task_queue_paused(
&self,
account_id: Uuid,
) -> Result<bool, RenegadeClientError>
pub async fn admin_is_task_queue_paused( &self, account_id: Uuid, ) -> Result<bool, RenegadeClientError>
Check if the given account’s task queue is paused
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub fn new_admin_order_builder(&self) -> AdminOrderBuilder
pub fn new_admin_order_builder(&self) -> AdminOrderBuilder
Create a new admin order builder with the client’s account address as the owner
Sourcepub async fn admin_place_order_in_pool(
&self,
built_order: BuiltAdminOrder,
) -> Result<(), RenegadeClientError>
pub async fn admin_place_order_in_pool( &self, built_order: BuiltAdminOrder, ) -> Result<(), RenegadeClientError>
Places an order in a specific matching pool via the admin API. Waits for the order creation task to complete before returning.
This is an admin action that requires the client to be configured with an admin HMAC key.
Sourcepub async fn enqueue_admin_order_placement_in_pool(
&self,
built_order: BuiltAdminOrder,
) -> Result<TaskWaiter, RenegadeClientError>
pub async fn enqueue_admin_order_placement_in_pool( &self, built_order: BuiltAdminOrder, ) -> Result<TaskWaiter, RenegadeClientError>
Enqueues an order placement task in a specific matching pool via the
admin API. Returns the expected order to be created, and a TaskWaiter
that can be used to await task completion.
This is an admin action that requires the client to be configured with an admin HMAC key.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub fn build_erc20_approval_tx(
&self,
token: Address,
amount: U256,
) -> TransactionRequest
pub fn build_erc20_approval_tx( &self, token: Address, amount: U256, ) -> TransactionRequest
Sourcepub fn build_permit2_allowance_tx(
&self,
token: Address,
amount: U160,
expiration: U48,
) -> TransactionRequest
pub fn build_permit2_allowance_tx( &self, token: Address, amount: U160, expiration: U48, ) -> TransactionRequest
Build a transaction to approve the darkpool as a spender through Permit2’s AllowanceTransfer interface.
§Arguments
token- The ERC20 token address to approveamount- The amount to approve for spending (uint160)expiration- The Unix timestamp when this approval expires (uint48)
§Returns
A TransactionRequest that can be executed by the user with their
provider
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn cancel_order(
&self,
order_id: Uuid,
) -> Result<(), RenegadeClientError>
pub async fn cancel_order( &self, order_id: Uuid, ) -> Result<(), RenegadeClientError>
Cancels the order with the given ID. Waits for the order cancellation task to complete before returning.
Sourcepub async fn enqueue_order_cancellation(
&self,
order_id: Uuid,
) -> Result<TaskWaiter, RenegadeClientError>
pub async fn enqueue_order_cancellation( &self, order_id: Uuid, ) -> Result<TaskWaiter, RenegadeClientError>
Enqueues an order cancellation task in the relayer. Returns a
TaskWaiter that can be used to await task completion.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn create_account(&self) -> Result<(), RenegadeClientError>
pub async fn create_account(&self) -> Result<(), RenegadeClientError>
Create an account with the relayer.
This method will register the account credentials with the relayer, but will not yet result in any state being committed onchain in the darkpool.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn deposit(
&self,
mint: Address,
amount: Amount,
) -> Result<(), RenegadeClientError>
pub async fn deposit( &self, mint: Address, amount: Amount, ) -> Result<(), RenegadeClientError>
Deposit funds into an account balance. Waits for the deposit task to complete before returning the post-deposit balance.
Sourcepub async fn enqueue_deposit(
&self,
mint: Address,
amount: Amount,
) -> Result<TaskWaiter, RenegadeClientError>
pub async fn enqueue_deposit( &self, mint: Address, amount: Amount, ) -> Result<TaskWaiter, RenegadeClientError>
Enqueues a deposit task in the relayer. Returns the post-deposit
balance, and a TaskWaiter that can be used to await task
completion.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn get_account(&self) -> Result<ApiAccount, RenegadeClientError>
pub async fn get_account(&self) -> Result<ApiAccount, RenegadeClientError>
Look up an account by its ID
Returns the account’s orders and balances
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn get_account_seeds(
&self,
) -> Result<(PoseidonCSPRNG, PoseidonCSPRNG), RenegadeClientError>
pub async fn get_account_seeds( &self, ) -> Result<(PoseidonCSPRNG, PoseidonCSPRNG), RenegadeClientError>
Get an account’s seed CSPRNG states from the relayer. These are the CSPRNGs used to sample seeds with which to create new state objects.
Returns a tuple of (recovery stream seeds CSPRNG, share stream seeds CSPRNG)
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn get_balance_by_mint(
&self,
mint: Address,
) -> Result<ApiBalance, RenegadeClientError>
pub async fn get_balance_by_mint( &self, mint: Address, ) -> Result<ApiBalance, RenegadeClientError>
Get the account’s balance for a given mint
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn get_balances(&self) -> Result<Vec<ApiBalance>, RenegadeClientError>
pub async fn get_balances(&self) -> Result<Vec<ApiBalance>, RenegadeClientError>
Fetches all balances in the account.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn get_order(
&self,
order_id: Uuid,
) -> Result<ApiOrder, RenegadeClientError>
pub async fn get_order( &self, order_id: Uuid, ) -> Result<ApiOrder, RenegadeClientError>
Look up an order by its ID
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn get_orders(
&self,
include_historic_orders: bool,
) -> Result<Vec<ApiOrder>, RenegadeClientError>
pub async fn get_orders( &self, include_historic_orders: bool, ) -> Result<Vec<ApiOrder>, RenegadeClientError>
Fetches all orders in the account, optionally including historic (inactive) orders.
This method will paginate through all of the account’s orders across multiple requests, returning them all.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn get_task(
&self,
task_id: Uuid,
) -> Result<ApiTask, RenegadeClientError>
pub async fn get_task( &self, task_id: Uuid, ) -> Result<ApiTask, RenegadeClientError>
Look up a task by its ID
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub fn new_order_builder(&self) -> OrderBuilder
pub fn new_order_builder(&self) -> OrderBuilder
Create a new order builder with the client’s account address as the owner
Sourcepub async fn place_order(
&self,
built_order: BuiltOrder,
) -> Result<(), RenegadeClientError>
pub async fn place_order( &self, built_order: BuiltOrder, ) -> Result<(), RenegadeClientError>
Places an order via the relayer. Waits for the order creation task to complete before returning the created order.
Orders will only be committed to onchain state upon their first fill. As such, this method alone just registers this order as an intent to trade with the relayer.
Sourcepub async fn enqueue_order_placement(
&self,
built_order: BuiltOrder,
) -> Result<TaskWaiter, RenegadeClientError>
pub async fn enqueue_order_placement( &self, built_order: BuiltOrder, ) -> Result<TaskWaiter, RenegadeClientError>
Enqueues an order placement task in the relayer. Returns the expected
order to be created, and a TaskWaiter that can be used to await task
completion.
Orders will only be committed to onchain state upon their first fill. As such, this method alone just registers this order as an intent to trade with the relayer.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn sync_account(&self) -> Result<(), RenegadeClientError>
pub async fn sync_account(&self) -> Result<(), RenegadeClientError>
Sync an account with onchain state. Awaits the completion of the sync task before returning.
Sourcepub async fn enqueue_sync_account(
&self,
) -> Result<TaskWaiter, RenegadeClientError>
pub async fn enqueue_sync_account( &self, ) -> Result<TaskWaiter, RenegadeClientError>
Enqueues a sync task in the relayer. Returns a TaskWaiter that can be
used to await task completion.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn update_order(
&self,
order_update_config: OrderUpdateConfig,
) -> Result<ApiOrder, RenegadeClientError>
pub async fn update_order( &self, order_update_config: OrderUpdateConfig, ) -> Result<ApiOrder, RenegadeClientError>
Updates an order.
Currently, the only parameters which can updated are the order’s
min_fill_size, and whether to allow_external_matches.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub async fn withdraw(
&self,
mint: Address,
amount: Amount,
) -> Result<(), RenegadeClientError>
pub async fn withdraw( &self, mint: Address, amount: Amount, ) -> Result<(), RenegadeClientError>
Withdraw funds from an account balance. Waits for the withdrawal task to complete before returning.
Sourcepub async fn enqueue_withdrawal(
&self,
mint: Address,
amount: Amount,
) -> Result<TaskWaiter, RenegadeClientError>
pub async fn enqueue_withdrawal( &self, mint: Address, amount: Amount, ) -> Result<TaskWaiter, RenegadeClientError>
Enqueues a withdrawal task in the relayer. Returns a TaskWaiter that
can be used to await task completion.
Source§impl RenegadeClient
impl RenegadeClient
Sourcepub fn new(config: RenegadeClientConfig) -> Result<Self, RenegadeClientError>
pub fn new(config: RenegadeClientConfig) -> Result<Self, RenegadeClientError>
Derive the wallet secrets from an ethereum private key
Sourcepub fn new_arbitrum_sepolia(
key: &PrivateKeySigner,
) -> Result<Self, RenegadeClientError>
pub fn new_arbitrum_sepolia( key: &PrivateKeySigner, ) -> Result<Self, RenegadeClientError>
Create a new wallet on Arbitrum Sepolia
Sourcepub fn new_arbitrum_sepolia_admin(
key: &PrivateKeySigner,
admin_hmac_key: HmacKey,
) -> Result<Self, RenegadeClientError>
pub fn new_arbitrum_sepolia_admin( key: &PrivateKeySigner, admin_hmac_key: HmacKey, ) -> Result<Self, RenegadeClientError>
Create a new admin wallet on Arbitrum Sepolia
Sourcepub fn new_arbitrum_one(
key: &PrivateKeySigner,
) -> Result<Self, RenegadeClientError>
pub fn new_arbitrum_one( key: &PrivateKeySigner, ) -> Result<Self, RenegadeClientError>
Create a new wallet on Arbitrum One
Sourcepub fn new_arbitrum_one_admin(
key: &PrivateKeySigner,
admin_hmac_key: HmacKey,
) -> Result<Self, RenegadeClientError>
pub fn new_arbitrum_one_admin( key: &PrivateKeySigner, admin_hmac_key: HmacKey, ) -> Result<Self, RenegadeClientError>
Create a new admin wallet on Arbitrum One
Sourcepub fn new_base_sepolia(
key: &PrivateKeySigner,
) -> Result<Self, RenegadeClientError>
pub fn new_base_sepolia( key: &PrivateKeySigner, ) -> Result<Self, RenegadeClientError>
Create a new wallet on Base Sepolia
Sourcepub fn new_base_sepolia_admin(
key: &PrivateKeySigner,
admin_hmac_key: HmacKey,
) -> Result<Self, RenegadeClientError>
pub fn new_base_sepolia_admin( key: &PrivateKeySigner, admin_hmac_key: HmacKey, ) -> Result<Self, RenegadeClientError>
Create a new admin wallet on Base Sepolia
Sourcepub fn new_base_mainnet(
key: &PrivateKeySigner,
) -> Result<Self, RenegadeClientError>
pub fn new_base_mainnet( key: &PrivateKeySigner, ) -> Result<Self, RenegadeClientError>
Create a new wallet on Base Mainnet
Sourcepub fn new_ethereum_sepolia_admin(
key: &PrivateKeySigner,
admin_hmac_key: HmacKey,
) -> Result<Self, RenegadeClientError>
pub fn new_ethereum_sepolia_admin( key: &PrivateKeySigner, admin_hmac_key: HmacKey, ) -> Result<Self, RenegadeClientError>
Create a new admin wallet on Ethereum Sepolia
Sourcepub fn new_ethereum_sepolia(
key: &PrivateKeySigner,
) -> Result<Self, RenegadeClientError>
pub fn new_ethereum_sepolia( key: &PrivateKeySigner, ) -> Result<Self, RenegadeClientError>
Create a new admin wallet on Ethereum Sepolia
Sourcepub fn new_base_mainnet_admin(
key: &PrivateKeySigner,
admin_hmac_key: HmacKey,
) -> Result<Self, RenegadeClientError>
pub fn new_base_mainnet_admin( key: &PrivateKeySigner, admin_hmac_key: HmacKey, ) -> Result<Self, RenegadeClientError>
Create a new admin wallet on Base Mainnet
Sourcepub fn is_solidity_chain(&self) -> bool
pub fn is_solidity_chain(&self) -> bool
Whether the client is on a chain in which Renegade is deployed as a solidity contract
Sourcepub async fn watch_task(
&self,
task_id: Uuid,
timeout: Duration,
) -> Result<TaskWaiter, RenegadeClientError>
pub async fn watch_task( &self, task_id: Uuid, timeout: Duration, ) -> Result<TaskWaiter, RenegadeClientError>
Create a TaskWaiter which can be used to watch a task until it
completes or times out
Sourcepub async fn subscribe_task_updates(
&self,
) -> Result<impl Stream<Item = TaskUpdateMessage>, RenegadeClientError>
pub async fn subscribe_task_updates( &self, ) -> Result<impl Stream<Item = TaskUpdateMessage>, RenegadeClientError>
Subscribe to the account’s task updates stream
Sourcepub async fn subscribe_balance_updates(
&self,
) -> Result<impl Stream<Item = BalanceUpdateMessage>, RenegadeClientError>
pub async fn subscribe_balance_updates( &self, ) -> Result<impl Stream<Item = BalanceUpdateMessage>, RenegadeClientError>
Subscribe to the account’s balance updates stream
Sourcepub async fn subscribe_order_updates(
&self,
) -> Result<impl Stream<Item = OrderUpdateMessage>, RenegadeClientError>
pub async fn subscribe_order_updates( &self, ) -> Result<impl Stream<Item = OrderUpdateMessage>, RenegadeClientError>
Subscribe to the account’s order updates stream
Sourcepub async fn subscribe_fills(
&self,
) -> Result<impl Stream<Item = FillMessage>, RenegadeClientError>
pub async fn subscribe_fills( &self, ) -> Result<impl Stream<Item = FillMessage>, RenegadeClientError>
Subscribe to the account’s fills stream
Sourcepub async fn subscribe_admin_balance_updates(
&self,
) -> Result<impl Stream<Item = AdminBalanceUpdateMessage>, RenegadeClientError>
pub async fn subscribe_admin_balance_updates( &self, ) -> Result<impl Stream<Item = AdminBalanceUpdateMessage>, RenegadeClientError>
Subscribe to the admin balances updates stream
Sourcepub async fn subscribe_admin_order_updates(
&self,
) -> Result<impl Stream<Item = AdminOrderUpdateMessage>, RenegadeClientError>
pub async fn subscribe_admin_order_updates( &self, ) -> Result<impl Stream<Item = AdminOrderUpdateMessage>, RenegadeClientError>
Subscribe to the admin order updates stream
Sourcepub fn get_admin_client(
&self,
) -> Result<&RelayerHttpClient, RenegadeClientError>
pub fn get_admin_client( &self, ) -> Result<&RelayerHttpClient, RenegadeClientError>
Get a reference to the admin relayer client, returning an error if one has not been configured.
Sourcepub fn get_account_id(&self) -> Uuid
pub fn get_account_id(&self) -> Uuid
Get the ID of the account
Sourcepub fn get_master_view_seed(&self) -> Scalar
pub fn get_master_view_seed(&self) -> Scalar
Get the master view seed
Sourcepub fn get_auth_hmac_key(&self) -> HmacKey
pub fn get_auth_hmac_key(&self) -> HmacKey
Get the HMAC key used to authenticate account API actions
Sourcepub fn get_account_signer(&self) -> &PrivateKeySigner
pub fn get_account_signer(&self) -> &PrivateKeySigner
Get the signing key client is configured with
Sourcepub fn get_account_address(&self) -> Address
pub fn get_account_address(&self) -> Address
Get the address of the account associated with the private key the client is configured with
Sourcepub fn schnorr_sign<T: BaseType>(
&self,
message: &T,
) -> Result<SchnorrSignature, RenegadeClientError>
pub fn schnorr_sign<T: BaseType>( &self, message: &T, ) -> Result<SchnorrSignature, RenegadeClientError>
Get the Schnorr private key client is configured with
Sourcepub fn get_schnorr_public_key(&self) -> SchnorrPublicKey
pub fn get_schnorr_public_key(&self) -> SchnorrPublicKey
Get the public key associated with the Schnorr private key the client is configured with
Sourcepub fn get_executor_address(&self) -> Address
pub fn get_executor_address(&self) -> Address
Get the relayer’s executor address, which it uses to sign public order settlement obligations
Sourcepub fn get_relayer_fee_recipient(&self) -> Address
pub fn get_relayer_fee_recipient(&self) -> Address
Get the relayer’s fee recipient address
Sourcepub fn get_chain_id(&self) -> u64
pub fn get_chain_id(&self) -> u64
Get the chain ID the client is configured for
Sourcepub fn get_permit2_address(&self) -> Address
pub fn get_permit2_address(&self) -> Address
Get the permit2 address the client is configured for
Sourcepub fn get_darkpool_address(&self) -> Address
pub fn get_darkpool_address(&self) -> Address
Get the darkpool address the client is configured for
Trait Implementations§
Source§impl Clone for RenegadeClient
impl Clone for RenegadeClient
Source§fn clone(&self) -> RenegadeClient
fn clone(&self) -> RenegadeClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !Freeze for RenegadeClient
impl !RefUnwindSafe for RenegadeClient
impl Send for RenegadeClient
impl Sync for RenegadeClient
impl Unpin for RenegadeClient
impl !UnwindSafe for RenegadeClient
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync 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> 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>
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 more§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.