pub struct IthacaAccountInstance<P, N = Ethereum> {
address: Address,
provider: P,
_network: PhantomData<N>,
}Expand description
A IthacaAccount instance.
Contains type-safe methods for interacting with an on-chain instance of the
IthacaAccount contract located at a given address, using a given
provider P.
If the contract bytecode is available (see the sol!
documentation on how to provide it), the deploy and deploy_builder methods can
be used to deploy a new instance of the contract.
See the module-level documentation for all the available methods.
Fields§
§address: Address§provider: P§_network: PhantomData<N>Implementations§
Source§impl<P: Provider<N>, N: Network> IthacaAccountInstance<P, N>
Instantiation and getters/setters.
impl<P: Provider<N>, N: Network> IthacaAccountInstance<P, N>
Instantiation and getters/setters.
Sourcepub const fn new(address: Address, __provider: P) -> Self
pub const fn new(address: Address, __provider: P) -> Self
Creates a new wrapper around an on-chain IthacaAccount contract instance.
See the wrapper’s documentation for more details.
Sourcepub async fn deploy(
__provider: P,
orchestrator: Address,
) -> Result<IthacaAccountInstance<P, N>>
pub async fn deploy( __provider: P, orchestrator: Address, ) -> Result<IthacaAccountInstance<P, N>>
Deploys this contract using the given provider and constructor arguments, if any.
Returns a new instance of the contract, if the deployment was successful.
For more fine-grained control over the deployment process, use deploy_builder instead.
Sourcepub fn deploy_builder(
__provider: P,
orchestrator: Address,
) -> RawCallBuilder<P, N>
pub fn deploy_builder( __provider: P, orchestrator: Address, ) -> RawCallBuilder<P, N>
Creates a RawCallBuilder for deploying this contract using the given provider
and constructor arguments, if any.
This is a simple wrapper around creating a RawCallBuilder with the data set to
the bytecode concatenated with the constructor’s ABI-encoded arguments.
Sourcepub fn set_address(&mut self, address: Address)
pub fn set_address(&mut self, address: Address)
Sets the address.
Source§impl<P: Clone, N> IthacaAccountInstance<&P, N>
impl<P: Clone, N> IthacaAccountInstance<&P, N>
Sourcepub fn with_cloned_provider(self) -> IthacaAccountInstance<P, N>
pub fn with_cloned_provider(self) -> IthacaAccountInstance<P, N>
Clones the provider and returns a new instance with the cloned provider.
Source§impl<P: Provider<N>, N: Network> IthacaAccountInstance<P, N>
Function calls.
impl<P: Provider<N>, N: Network> IthacaAccountInstance<P, N>
Function calls.
Sourcepub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<&P, C, N>
pub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<&P, C, N>
Creates a new call builder using this contract instance’s provider and address.
Note that the call can be any function call, not just those defined in this contract. Prefer using the other methods for building type-safe contract calls.
Sourcepub fn ANY_FN_SEL(&self) -> SolCallBuilder<&P, ANY_FN_SELCall, N>
pub fn ANY_FN_SEL(&self) -> SolCallBuilder<&P, ANY_FN_SELCall, N>
Creates a new call builder for the [ANY_FN_SEL] function.
Sourcepub fn ANY_KEYHASH(&self) -> SolCallBuilder<&P, ANY_KEYHASHCall, N>
pub fn ANY_KEYHASH(&self) -> SolCallBuilder<&P, ANY_KEYHASHCall, N>
Creates a new call builder for the [ANY_KEYHASH] function.
Sourcepub fn ANY_TARGET(&self) -> SolCallBuilder<&P, ANY_TARGETCall, N>
pub fn ANY_TARGET(&self) -> SolCallBuilder<&P, ANY_TARGETCall, N>
Creates a new call builder for the [ANY_TARGET] function.
Sourcepub fn CALL_TYPEHASH(&self) -> SolCallBuilder<&P, CALL_TYPEHASHCall, N>
pub fn CALL_TYPEHASH(&self) -> SolCallBuilder<&P, CALL_TYPEHASHCall, N>
Creates a new call builder for the [CALL_TYPEHASH] function.
Sourcepub fn DOMAIN_TYPEHASH(&self) -> SolCallBuilder<&P, DOMAIN_TYPEHASHCall, N>
pub fn DOMAIN_TYPEHASH(&self) -> SolCallBuilder<&P, DOMAIN_TYPEHASHCall, N>
Creates a new call builder for the [DOMAIN_TYPEHASH] function.
Sourcepub fn EMPTY_CALLDATA_FN_SEL(
&self,
) -> SolCallBuilder<&P, EMPTY_CALLDATA_FN_SELCall, N>
pub fn EMPTY_CALLDATA_FN_SEL( &self, ) -> SolCallBuilder<&P, EMPTY_CALLDATA_FN_SELCall, N>
Creates a new call builder for the [EMPTY_CALLDATA_FN_SEL] function.
Sourcepub fn EXECUTE_TYPEHASH(&self) -> SolCallBuilder<&P, EXECUTE_TYPEHASHCall, N>
pub fn EXECUTE_TYPEHASH(&self) -> SolCallBuilder<&P, EXECUTE_TYPEHASHCall, N>
Creates a new call builder for the [EXECUTE_TYPEHASH] function.
Sourcepub fn MULTICHAIN_NONCE_PREFIX(
&self,
) -> SolCallBuilder<&P, MULTICHAIN_NONCE_PREFIXCall, N>
pub fn MULTICHAIN_NONCE_PREFIX( &self, ) -> SolCallBuilder<&P, MULTICHAIN_NONCE_PREFIXCall, N>
Creates a new call builder for the [MULTICHAIN_NONCE_PREFIX] function.
Sourcepub fn ORCHESTRATOR(&self) -> SolCallBuilder<&P, ORCHESTRATORCall, N>
pub fn ORCHESTRATOR(&self) -> SolCallBuilder<&P, ORCHESTRATORCall, N>
Creates a new call builder for the [ORCHESTRATOR] function.
Sourcepub fn SIGN_TYPEHASH(&self) -> SolCallBuilder<&P, SIGN_TYPEHASHCall, N>
pub fn SIGN_TYPEHASH(&self) -> SolCallBuilder<&P, SIGN_TYPEHASHCall, N>
Creates a new call builder for the [SIGN_TYPEHASH] function.
Sourcepub fn approvedSignatureCheckers(
&self,
keyHash: FixedBytes<32>,
) -> SolCallBuilder<&P, approvedSignatureCheckersCall, N>
pub fn approvedSignatureCheckers( &self, keyHash: FixedBytes<32>, ) -> SolCallBuilder<&P, approvedSignatureCheckersCall, N>
Creates a new call builder for the [approvedSignatureCheckers] function.
Creates a new call builder for the [authorize] function.
Sourcepub fn callCheckerInfos(
&self,
keyHash: FixedBytes<32>,
) -> SolCallBuilder<&P, callCheckerInfosCall, N>
pub fn callCheckerInfos( &self, keyHash: FixedBytes<32>, ) -> SolCallBuilder<&P, callCheckerInfosCall, N>
Creates a new call builder for the [callCheckerInfos] function.
Sourcepub fn canExecute(
&self,
keyHash: FixedBytes<32>,
target: Address,
data: Bytes,
) -> SolCallBuilder<&P, canExecuteCall, N>
pub fn canExecute( &self, keyHash: FixedBytes<32>, target: Address, data: Bytes, ) -> SolCallBuilder<&P, canExecuteCall, N>
Creates a new call builder for the [canExecute] function.
Sourcepub fn canExecutePackedInfos(
&self,
keyHash: FixedBytes<32>,
) -> SolCallBuilder<&P, canExecutePackedInfosCall, N>
pub fn canExecutePackedInfos( &self, keyHash: FixedBytes<32>, ) -> SolCallBuilder<&P, canExecutePackedInfosCall, N>
Creates a new call builder for the [canExecutePackedInfos] function.
Sourcepub fn checkAndIncrementNonce(
&self,
nonce: U256,
) -> SolCallBuilder<&P, checkAndIncrementNonceCall, N>
pub fn checkAndIncrementNonce( &self, nonce: U256, ) -> SolCallBuilder<&P, checkAndIncrementNonceCall, N>
Creates a new call builder for the [checkAndIncrementNonce] function.
Sourcepub fn computeDigest(
&self,
calls: Vec<<Call as SolType>::RustType>,
nonce: U256,
) -> SolCallBuilder<&P, computeDigestCall, N>
pub fn computeDigest( &self, calls: Vec<<Call as SolType>::RustType>, nonce: U256, ) -> SolCallBuilder<&P, computeDigestCall, N>
Creates a new call builder for the [computeDigest] function.
Sourcepub fn eip712Domain(&self) -> SolCallBuilder<&P, eip712DomainCall, N>
pub fn eip712Domain(&self) -> SolCallBuilder<&P, eip712DomainCall, N>
Creates a new call builder for the [eip712Domain] function.
Sourcepub fn execute(
&self,
mode: FixedBytes<32>,
executionData: Bytes,
) -> SolCallBuilder<&P, executeCall, N>
pub fn execute( &self, mode: FixedBytes<32>, executionData: Bytes, ) -> SolCallBuilder<&P, executeCall, N>
Creates a new call builder for the [execute] function.
Sourcepub fn getContextKeyHash(&self) -> SolCallBuilder<&P, getContextKeyHashCall, N>
pub fn getContextKeyHash(&self) -> SolCallBuilder<&P, getContextKeyHashCall, N>
Creates a new call builder for the [getContextKeyHash] function.
Sourcepub fn getKey(
&self,
keyHash: FixedBytes<32>,
) -> SolCallBuilder<&P, getKeyCall, N>
pub fn getKey( &self, keyHash: FixedBytes<32>, ) -> SolCallBuilder<&P, getKeyCall, N>
Creates a new call builder for the [getKey] function.
Sourcepub fn getKeys(&self) -> SolCallBuilder<&P, getKeysCall, N>
pub fn getKeys(&self) -> SolCallBuilder<&P, getKeysCall, N>
Creates a new call builder for the [getKeys] function.
Sourcepub fn getNonce(&self, seqKey: U192) -> SolCallBuilder<&P, getNonceCall, N>
pub fn getNonce(&self, seqKey: U192) -> SolCallBuilder<&P, getNonceCall, N>
Creates a new call builder for the [getNonce] function.
Sourcepub fn hash(
&self,
key: <Key as SolType>::RustType,
) -> SolCallBuilder<&P, hashCall, N>
pub fn hash( &self, key: <Key as SolType>::RustType, ) -> SolCallBuilder<&P, hashCall, N>
Creates a new call builder for the [hash] function.
Sourcepub fn invalidateNonce(
&self,
nonce: U256,
) -> SolCallBuilder<&P, invalidateNonceCall, N>
pub fn invalidateNonce( &self, nonce: U256, ) -> SolCallBuilder<&P, invalidateNonceCall, N>
Creates a new call builder for the [invalidateNonce] function.
Sourcepub fn isValidSignature(
&self,
digest: FixedBytes<32>,
signature: Bytes,
) -> SolCallBuilder<&P, isValidSignatureCall, N>
pub fn isValidSignature( &self, digest: FixedBytes<32>, signature: Bytes, ) -> SolCallBuilder<&P, isValidSignatureCall, N>
Creates a new call builder for the [isValidSignature] function.
Sourcepub fn keyAt(&self, i: U256) -> SolCallBuilder<&P, keyAtCall, N>
pub fn keyAt(&self, i: U256) -> SolCallBuilder<&P, keyAtCall, N>
Creates a new call builder for the [keyAt] function.
Sourcepub fn keyCount(&self) -> SolCallBuilder<&P, keyCountCall, N>
pub fn keyCount(&self) -> SolCallBuilder<&P, keyCountCall, N>
Creates a new call builder for the [keyCount] function.
Sourcepub fn label(&self) -> SolCallBuilder<&P, labelCall, N>
pub fn label(&self) -> SolCallBuilder<&P, labelCall, N>
Creates a new call builder for the [label] function.
Sourcepub fn pay(
&self,
paymentAmount: U256,
keyHash: FixedBytes<32>,
intentDigest: FixedBytes<32>,
encodedIntent: Bytes,
) -> SolCallBuilder<&P, payCall, N>
pub fn pay( &self, paymentAmount: U256, keyHash: FixedBytes<32>, intentDigest: FixedBytes<32>, encodedIntent: Bytes, ) -> SolCallBuilder<&P, payCall, N>
Creates a new call builder for the [pay] function.
Sourcepub fn removeSpendLimit(
&self,
keyHash: FixedBytes<32>,
token: Address,
period: <SpendPeriod as SolType>::RustType,
) -> SolCallBuilder<&P, removeSpendLimitCall, N>
pub fn removeSpendLimit( &self, keyHash: FixedBytes<32>, token: Address, period: <SpendPeriod as SolType>::RustType, ) -> SolCallBuilder<&P, removeSpendLimitCall, N>
Creates a new call builder for the [removeSpendLimit] function.
Sourcepub fn revoke(
&self,
keyHash: FixedBytes<32>,
) -> SolCallBuilder<&P, revokeCall, N>
pub fn revoke( &self, keyHash: FixedBytes<32>, ) -> SolCallBuilder<&P, revokeCall, N>
Creates a new call builder for the [revoke] function.
Sourcepub fn setCallChecker(
&self,
keyHash: FixedBytes<32>,
target: Address,
checker: Address,
) -> SolCallBuilder<&P, setCallCheckerCall, N>
pub fn setCallChecker( &self, keyHash: FixedBytes<32>, target: Address, checker: Address, ) -> SolCallBuilder<&P, setCallCheckerCall, N>
Creates a new call builder for the [setCallChecker] function.
Sourcepub fn setCanExecute(
&self,
keyHash: FixedBytes<32>,
target: Address,
fnSel: FixedBytes<4>,
can: bool,
) -> SolCallBuilder<&P, setCanExecuteCall, N>
pub fn setCanExecute( &self, keyHash: FixedBytes<32>, target: Address, fnSel: FixedBytes<4>, can: bool, ) -> SolCallBuilder<&P, setCanExecuteCall, N>
Creates a new call builder for the [setCanExecute] function.
Sourcepub fn setLabel(&self, newLabel: String) -> SolCallBuilder<&P, setLabelCall, N>
pub fn setLabel(&self, newLabel: String) -> SolCallBuilder<&P, setLabelCall, N>
Creates a new call builder for the [setLabel] function.
Sourcepub fn setSignatureCheckerApproval(
&self,
keyHash: FixedBytes<32>,
checker: Address,
isApproved: bool,
) -> SolCallBuilder<&P, setSignatureCheckerApprovalCall, N>
pub fn setSignatureCheckerApproval( &self, keyHash: FixedBytes<32>, checker: Address, isApproved: bool, ) -> SolCallBuilder<&P, setSignatureCheckerApprovalCall, N>
Creates a new call builder for the [setSignatureCheckerApproval] function.
Sourcepub fn setSpendLimit(
&self,
keyHash: FixedBytes<32>,
token: Address,
period: <SpendPeriod as SolType>::RustType,
limit: U256,
) -> SolCallBuilder<&P, setSpendLimitCall, N>
pub fn setSpendLimit( &self, keyHash: FixedBytes<32>, token: Address, period: <SpendPeriod as SolType>::RustType, limit: U256, ) -> SolCallBuilder<&P, setSpendLimitCall, N>
Creates a new call builder for the [setSpendLimit] function.
Sourcepub fn spendAndExecuteInfos(
&self,
keyHashes: Vec<FixedBytes<32>>,
) -> SolCallBuilder<&P, spendAndExecuteInfosCall, N>
pub fn spendAndExecuteInfos( &self, keyHashes: Vec<FixedBytes<32>>, ) -> SolCallBuilder<&P, spendAndExecuteInfosCall, N>
Creates a new call builder for the [spendAndExecuteInfos] function.
Sourcepub fn spendInfos(
&self,
keyHash: FixedBytes<32>,
) -> SolCallBuilder<&P, spendInfosCall, N>
pub fn spendInfos( &self, keyHash: FixedBytes<32>, ) -> SolCallBuilder<&P, spendInfosCall, N>
Creates a new call builder for the [spendInfos] function.
Sourcepub fn startOfSpendPeriod(
&self,
unixTimestamp: U256,
period: <SpendPeriod as SolType>::RustType,
) -> SolCallBuilder<&P, startOfSpendPeriodCall, N>
pub fn startOfSpendPeriod( &self, unixTimestamp: U256, period: <SpendPeriod as SolType>::RustType, ) -> SolCallBuilder<&P, startOfSpendPeriodCall, N>
Creates a new call builder for the [startOfSpendPeriod] function.
Sourcepub fn supportsExecutionMode(
&self,
mode: FixedBytes<32>,
) -> SolCallBuilder<&P, supportsExecutionModeCall, N>
pub fn supportsExecutionMode( &self, mode: FixedBytes<32>, ) -> SolCallBuilder<&P, supportsExecutionModeCall, N>
Creates a new call builder for the [supportsExecutionMode] function.
Sourcepub fn unwrapAndValidateSignature(
&self,
digest: FixedBytes<32>,
signature: Bytes,
) -> SolCallBuilder<&P, unwrapAndValidateSignatureCall, N>
pub fn unwrapAndValidateSignature( &self, digest: FixedBytes<32>, signature: Bytes, ) -> SolCallBuilder<&P, unwrapAndValidateSignatureCall, N>
Creates a new call builder for the [unwrapAndValidateSignature] function.
Sourcepub fn upgradeHook(
&self,
previousVersion: FixedBytes<32>,
) -> SolCallBuilder<&P, upgradeHookCall, N>
pub fn upgradeHook( &self, previousVersion: FixedBytes<32>, ) -> SolCallBuilder<&P, upgradeHookCall, N>
Creates a new call builder for the [upgradeHook] function.
Sourcepub fn upgradeProxyAccount(
&self,
newImplementation: Address,
) -> SolCallBuilder<&P, upgradeProxyAccountCall, N>
pub fn upgradeProxyAccount( &self, newImplementation: Address, ) -> SolCallBuilder<&P, upgradeProxyAccountCall, N>
Creates a new call builder for the [upgradeProxyAccount] function.
Source§impl<P: Provider<N>, N: Network> IthacaAccountInstance<P, N>
Event filters.
impl<P: Provider<N>, N: Network> IthacaAccountInstance<P, N>
Event filters.
Sourcepub fn event_filter<E: SolEvent>(&self) -> Event<&P, E, N>
pub fn event_filter<E: SolEvent>(&self) -> Event<&P, E, N>
Creates a new event filter using this contract instance’s provider and address.
Note that the type can be any event, not just those defined in this contract. Prefer using the other methods for building type-safe event filters.
Sourcepub fn Authorized_filter(&self) -> Event<&P, Authorized, N>
pub fn Authorized_filter(&self) -> Event<&P, Authorized, N>
Creates a new event filter for the Authorized event.
Sourcepub fn CallCheckerSet_filter(&self) -> Event<&P, CallCheckerSet, N>
pub fn CallCheckerSet_filter(&self) -> Event<&P, CallCheckerSet, N>
Creates a new event filter for the CallCheckerSet event.
Sourcepub fn CanExecuteSet_filter(&self) -> Event<&P, CanExecuteSet, N>
pub fn CanExecuteSet_filter(&self) -> Event<&P, CanExecuteSet, N>
Creates a new event filter for the CanExecuteSet event.
Sourcepub fn ImplementationApprovalSet_filter(
&self,
) -> Event<&P, ImplementationApprovalSet, N>
pub fn ImplementationApprovalSet_filter( &self, ) -> Event<&P, ImplementationApprovalSet, N>
Creates a new event filter for the ImplementationApprovalSet event.
Sourcepub fn ImplementationCallerApprovalSet_filter(
&self,
) -> Event<&P, ImplementationCallerApprovalSet, N>
pub fn ImplementationCallerApprovalSet_filter( &self, ) -> Event<&P, ImplementationCallerApprovalSet, N>
Creates a new event filter for the ImplementationCallerApprovalSet event.
Sourcepub fn LabelSet_filter(&self) -> Event<&P, LabelSet, N>
pub fn LabelSet_filter(&self) -> Event<&P, LabelSet, N>
Creates a new event filter for the LabelSet event.
Sourcepub fn NonceInvalidated_filter(&self) -> Event<&P, NonceInvalidated, N>
pub fn NonceInvalidated_filter(&self) -> Event<&P, NonceInvalidated, N>
Creates a new event filter for the NonceInvalidated event.
Sourcepub fn Revoked_filter(&self) -> Event<&P, Revoked, N>
pub fn Revoked_filter(&self) -> Event<&P, Revoked, N>
Creates a new event filter for the Revoked event.
Sourcepub fn SignatureCheckerApprovalSet_filter(
&self,
) -> Event<&P, SignatureCheckerApprovalSet, N>
pub fn SignatureCheckerApprovalSet_filter( &self, ) -> Event<&P, SignatureCheckerApprovalSet, N>
Creates a new event filter for the SignatureCheckerApprovalSet event.
Sourcepub fn SpendLimitRemoved_filter(&self) -> Event<&P, SpendLimitRemoved, N>
pub fn SpendLimitRemoved_filter(&self) -> Event<&P, SpendLimitRemoved, N>
Creates a new event filter for the SpendLimitRemoved event.
Sourcepub fn SpendLimitSet_filter(&self) -> Event<&P, SpendLimitSet, N>
pub fn SpendLimitSet_filter(&self) -> Event<&P, SpendLimitSet, N>
Creates a new event filter for the SpendLimitSet event.
Trait Implementations§
Source§impl<P: Clone, N: Clone> Clone for IthacaAccountInstance<P, N>
impl<P: Clone, N: Clone> Clone for IthacaAccountInstance<P, N>
Source§fn clone(&self) -> IthacaAccountInstance<P, N>
fn clone(&self) -> IthacaAccountInstance<P, N>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<P, N> Freeze for IthacaAccountInstance<P, N>where
P: Freeze,
impl<P, N> RefUnwindSafe for IthacaAccountInstance<P, N>where
P: RefUnwindSafe,
N: RefUnwindSafe,
impl<P, N> Send for IthacaAccountInstance<P, N>
impl<P, N> Sync for IthacaAccountInstance<P, N>
impl<P, N> Unpin for IthacaAccountInstance<P, N>
impl<P, N> UnwindSafe for IthacaAccountInstance<P, N>where
P: UnwindSafe,
N: UnwindSafe,
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> 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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn propagate_header(self, header: HeaderName) -> PropagateHeader<Self>where
Self: Sized,
fn propagate_header(self, header: HeaderName) -> PropagateHeader<Self>where
Self: Sized,
propagate-header only.§fn add_extension<T>(self, value: T) -> AddExtension<Self, T>where
Self: Sized,
fn add_extension<T>(self, value: T) -> AddExtension<Self, T>where
Self: Sized,
add-extension only.§fn map_request_body<F>(self, f: F) -> MapRequestBody<Self, F>where
Self: Sized,
fn map_request_body<F>(self, f: F) -> MapRequestBody<Self, F>where
Self: Sized,
map-request-body only.§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
map-response-body only.§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
compression-br or compression-deflate or compression-gzip or compression-zstd only.§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
decompression-br or decompression-deflate or decompression-gzip or decompression-zstd only.§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
trace only.§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
trace only.§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
follow-redirect only.§fn sensitive_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<Self>>where
Self: Sized,
fn sensitive_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<Self>>where
Self: Sized,
sensitive-headers only.§fn sensitive_request_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<Self>where
Self: Sized,
fn sensitive_request_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<Self>where
Self: Sized,
sensitive-headers only.§fn sensitive_response_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveResponseHeaders<Self>where
Self: Sized,
fn sensitive_response_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveResponseHeaders<Self>where
Self: Sized,
sensitive-headers only.§fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
set-header only.§fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
set-header only.§fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
set-header only.§fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
set-header only.§fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
set-header only.§fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
set-header only.§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
request-id only.§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
request-id only.x-request-id as the header name. Read more§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
request-id only.§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
request-id only.x-request-id as the header name. Read more§fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
catch-panic only.500 Internal Server responses. Read more§fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
limit only.413 Payload Too Large responses. Read more§fn trim_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
fn trim_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
normalize-path only.§fn append_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
fn append_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
normalize-path only.§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.§impl<T> TryConv for T
impl<T> TryConv for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.