pub struct Switchboard<M>(/* private fields */);
Implementations§
Source§impl<M: Middleware> Switchboard<M>
impl<M: Middleware> Switchboard<M>
Sourcepub fn new<T: Into<Address>>(address: T, client: Arc<M>) -> Self
pub fn new<T: Into<Address>>(address: T, client: Arc<M>) -> Self
Creates a new contract instance with the specified ethers
client at
address
. The contract derefs to a ethers::Contract
object.
Sourcepub fn add_mr_enclave_to_attestation_queue(
&self,
queue_id: Address,
mr_enclave: [u8; 32],
) -> ContractCall<M, ()>
pub fn add_mr_enclave_to_attestation_queue( &self, queue_id: Address, mr_enclave: [u8; 32], ) -> ContractCall<M, ()>
Calls the contract’s addMrEnclaveToAttestationQueue
(0xad435b9d) function
Sourcepub fn add_mr_enclave_to_function(
&self,
function_id: Address,
mr_enclave: [u8; 32],
) -> ContractCall<M, ()>
pub fn add_mr_enclave_to_function( &self, function_id: Address, mr_enclave: [u8; 32], ) -> ContractCall<M, ()>
Calls the contract’s addMrEnclaveToFunction
(0x45fc160c) function
Sourcepub fn add_mr_enclave_to_oracle_queue(
&self,
queue_id: Address,
mr_enclave: [u8; 32],
) -> ContractCall<M, ()>
pub fn add_mr_enclave_to_oracle_queue( &self, queue_id: Address, mr_enclave: [u8; 32], ) -> ContractCall<M, ()>
Calls the contract’s addMrEnclaveToOracleQueue
(0x51a426d8) function
Sourcepub fn add_stake(
&self,
enclave_id: Address,
amount: U256,
) -> ContractCall<M, ()>
pub fn add_stake( &self, enclave_id: Address, amount: U256, ) -> ContractCall<M, ()>
Calls the contract’s addStake
(0x6374299e) function
Sourcepub fn aggregator_escrow_fund(&self, account_id: Address) -> ContractCall<M, ()>
pub fn aggregator_escrow_fund(&self, account_id: Address) -> ContractCall<M, ()>
Calls the contract’s aggregatorEscrowFund
(0xd55dcc5b) function
Sourcepub fn aggregator_escrow_withdraw(
&self,
recipient: Address,
aggregator_id: Address,
amount: U256,
) -> ContractCall<M, ()>
pub fn aggregator_escrow_withdraw( &self, recipient: Address, aggregator_id: Address, amount: U256, ) -> ContractCall<M, ()>
Calls the contract’s aggregatorEscrowWithdraw
(0x202dd499) function
Sourcepub fn aggregator_history(
&self,
aggregator_id: Address,
round_id: u128,
) -> ContractCall<M, AggregatorHistoryResult>
pub fn aggregator_history( &self, aggregator_id: Address, round_id: u128, ) -> ContractCall<M, AggregatorHistoryResult>
Calls the contract’s aggregatorHistory
(0x8625bd08) function
Sourcepub fn aggregators(&self, aggregator_id: Address) -> ContractCall<M, Aggregator>
pub fn aggregators(&self, aggregator_id: Address) -> ContractCall<M, Aggregator>
Calls the contract’s aggregators
(0x112cdab9) function
Sourcepub fn allowance(
&self,
owner: Address,
spender: Address,
) -> ContractCall<M, U256>
pub fn allowance( &self, owner: Address, spender: Address, ) -> ContractCall<M, U256>
Calls the contract’s allowance
(0xdd62ed3e) function
Sourcepub fn approve(&self, spender: Address, value: U256) -> ContractCall<M, bool>
pub fn approve(&self, spender: Address, value: U256) -> ContractCall<M, bool>
Calls the contract’s approve
(0x095ea7b3) function
Sourcepub fn attestation_queue_has_mr_enclave(
&self,
queue_id: Address,
mr_enclave: [u8; 32],
) -> ContractCall<M, bool>
pub fn attestation_queue_has_mr_enclave( &self, queue_id: Address, mr_enclave: [u8; 32], ) -> ContractCall<M, bool>
Calls the contract’s attestationQueueHasMrEnclave
(0x63fcd771) function
Sourcepub fn attestation_queues(
&self,
queue_id: Address,
) -> ContractCall<M, AttestationQueue>
pub fn attestation_queues( &self, queue_id: Address, ) -> ContractCall<M, AttestationQueue>
Calls the contract’s attestationQueues
(0x8bb3048c) function
Sourcepub fn balance_of(&self, account: Address) -> ContractCall<M, U256>
pub fn balance_of(&self, account: Address) -> ContractCall<M, U256>
Calls the contract’s balanceOf
(0x70a08231) function
Sourcepub fn call_balances(
&self,
call_ids: Vec<Address>,
) -> ContractCall<M, Vec<U256>>
pub fn call_balances( &self, call_ids: Vec<Address>, ) -> ContractCall<M, Vec<U256>>
Calls the contract’s callBalances
(0x0aaeffe5) function
Sourcepub fn call_function(
&self,
function_id: Address,
params: Bytes,
) -> ContractCall<M, Address>
pub fn call_function( &self, function_id: Address, params: Bytes, ) -> ContractCall<M, Address>
Calls the contract’s callFunction
(0x9c23da50) function
Sourcepub fn create_aggregator(
&self,
name: String,
authority: Address,
batch_size: U256,
min_update_delay_seconds: U256,
min_oracle_results: U256,
jobs_hash: String,
queue_id: Address,
variance_threshold: U256,
min_job_results: U256,
force_report_period: U256,
enable_history: bool,
) -> ContractCall<M, ()>
pub fn create_aggregator( &self, name: String, authority: Address, batch_size: U256, min_update_delay_seconds: U256, min_oracle_results: U256, jobs_hash: String, queue_id: Address, variance_threshold: U256, min_job_results: U256, force_report_period: U256, enable_history: bool, ) -> ContractCall<M, ()>
Calls the contract’s createAggregator
(0x84ed8177) function
Sourcepub fn create_attestation_queue(
&self,
authority: Address,
max_size: U256,
reward: U256,
enclave_timeout: U256,
max_enclave_verification_age: U256,
allow_authority_override_after: U256,
require_authority_heartbeat_permission: bool,
require_usage_permissions: bool,
max_consecutive_function_failures: U256,
) -> ContractCall<M, ()>
pub fn create_attestation_queue( &self, authority: Address, max_size: U256, reward: U256, enclave_timeout: U256, max_enclave_verification_age: U256, allow_authority_override_after: U256, require_authority_heartbeat_permission: bool, require_usage_permissions: bool, max_consecutive_function_failures: U256, ) -> ContractCall<M, ()>
Calls the contract’s createAttestationQueue
(0xde776851) function
Sourcepub fn create_enclave(
&self,
signer: Address,
queue_id: Address,
authority: Address,
) -> ContractCall<M, ()>
pub fn create_enclave( &self, signer: Address, queue_id: Address, authority: Address, ) -> ContractCall<M, ()>
Calls the contract’s createEnclave
(0xcf392e2f) function
Sourcepub fn create_enclave_with_id(
&self,
enclave_id: Address,
signer: Address,
queue_id: Address,
authority: Address,
) -> ContractCall<M, ()>
pub fn create_enclave_with_id( &self, enclave_id: Address, signer: Address, queue_id: Address, authority: Address, ) -> ContractCall<M, ()>
Calls the contract’s createEnclaveWithId
(0xc7c1143e) function
Sourcepub fn create_function(
&self,
name: String,
authority: Address,
queue_id: Address,
container_registry: String,
container: String,
version: String,
schedule: String,
params_schema: String,
permitted_callers: Vec<Address>,
) -> ContractCall<M, ()>
pub fn create_function( &self, name: String, authority: Address, queue_id: Address, container_registry: String, container: String, version: String, schedule: String, params_schema: String, permitted_callers: Vec<Address>, ) -> ContractCall<M, ()>
Calls the contract’s createFunction
(0xc4829580) function
Sourcepub fn create_function_with_id(
&self,
function_id: Address,
name: String,
authority: Address,
queue_id: Address,
container_registry: String,
container: String,
version: String,
schedule: String,
params_schema: String,
permitted_callers: Vec<Address>,
) -> ContractCall<M, ()>
pub fn create_function_with_id( &self, function_id: Address, name: String, authority: Address, queue_id: Address, container_registry: String, container: String, version: String, schedule: String, params_schema: String, permitted_callers: Vec<Address>, ) -> ContractCall<M, ()>
Calls the contract’s createFunctionWithId
(0xcd86c71b) function
Sourcepub fn create_oracle(
&self,
name: String,
signer: Address,
queue_id: Address,
authority: Address,
) -> ContractCall<M, ()>
pub fn create_oracle( &self, name: String, signer: Address, queue_id: Address, authority: Address, ) -> ContractCall<M, ()>
Calls the contract’s createOracle
(0xf843b846) function
Sourcepub fn create_oracle_queue(
&self,
name: String,
authority: Address,
unpermissioned_feeds_enabled: bool,
max_size: U256,
reward: U256,
oracle_timeout: U256,
) -> ContractCall<M, ()>
pub fn create_oracle_queue( &self, name: String, authority: Address, unpermissioned_feeds_enabled: bool, max_size: U256, reward: U256, oracle_timeout: U256, ) -> ContractCall<M, ()>
Calls the contract’s createOracleQueue
(0xe7675651) function
Sourcepub fn create_oracle_with_id(
&self,
oracle_id: Address,
name: String,
signer: Address,
queue_id: Address,
authority: Address,
) -> ContractCall<M, ()>
pub fn create_oracle_with_id( &self, oracle_id: Address, name: String, signer: Address, queue_id: Address, authority: Address, ) -> ContractCall<M, ()>
Calls the contract’s createOracleWithId
(0x16703130) function
Sourcepub fn create_routine_with_id(
&self,
routine_id: Address,
function_id: Address,
authority: Address,
params: Bytes,
schedule: String,
) -> ContractCall<M, ()>
pub fn create_routine_with_id( &self, routine_id: Address, function_id: Address, authority: Address, params: Bytes, schedule: String, ) -> ContractCall<M, ()>
Calls the contract’s createRoutineWithId
(0x410d3013) function
Sourcepub fn diamond_cut(
&self,
diamond_cut: Vec<FacetCut>,
init: Address,
calldata: Bytes,
) -> ContractCall<M, ()>
pub fn diamond_cut( &self, diamond_cut: Vec<FacetCut>, init: Address, calldata: Bytes, ) -> ContractCall<M, ()>
Calls the contract’s diamondCut
(0x1f931c1c) function
Sourcepub fn enclave_garbage_collect(
&self,
enclave_id: Address,
enclave_idx: U256,
) -> ContractCall<M, ()>
pub fn enclave_garbage_collect( &self, enclave_id: Address, enclave_idx: U256, ) -> ContractCall<M, ()>
Calls the contract’s enclaveGarbageCollect
(0xc06e4eda) function
Sourcepub fn enclave_heartbeat(&self, enclave_id: Address) -> ContractCall<M, ()>
pub fn enclave_heartbeat(&self, enclave_id: Address) -> ContractCall<M, ()>
Calls the contract’s enclaveHeartbeat
(0xce834437) function
Sourcepub fn enclave_signer_to_enclave_id(
&self,
signer: Address,
) -> ContractCall<M, Address>
pub fn enclave_signer_to_enclave_id( &self, signer: Address, ) -> ContractCall<M, Address>
Calls the contract’s enclaveSignerToEnclaveId
(0x2ff75ec2) function
Sourcepub fn enclaves(&self, enclave_id: Address) -> ContractCall<M, Enclave>
pub fn enclaves(&self, enclave_id: Address) -> ContractCall<M, Enclave>
Calls the contract’s enclaves
(0xfaeedb07) function
Sourcepub fn estimated_run_cost(
&self,
function_id: Address,
gas_price: U256,
) -> ContractCall<M, U256>
pub fn estimated_run_cost( &self, function_id: Address, gas_price: U256, ) -> ContractCall<M, U256>
Calls the contract’s estimatedRunCost
(0x3da87438) function
Sourcepub fn facet_address(
&self,
function_selector: [u8; 4],
) -> ContractCall<M, Address>
pub fn facet_address( &self, function_selector: [u8; 4], ) -> ContractCall<M, Address>
Calls the contract’s facetAddress
(0xcdffacc6) function
Sourcepub fn facet_addresses(&self) -> ContractCall<M, Vec<Address>>
pub fn facet_addresses(&self) -> ContractCall<M, Vec<Address>>
Calls the contract’s facetAddresses
(0x52ef6b2c) function
Sourcepub fn facet_function_selectors(
&self,
facet: Address,
) -> ContractCall<M, Vec<[u8; 4]>>
pub fn facet_function_selectors( &self, facet: Address, ) -> ContractCall<M, Vec<[u8; 4]>>
Calls the contract’s facetFunctionSelectors
(0xadfca15e) function
Sourcepub fn facets(&self) -> ContractCall<M, Vec<Facet>>
pub fn facets(&self) -> ContractCall<M, Vec<Facet>>
Calls the contract’s facets
(0x7a0ed627) function
Sourcepub fn fail_enclave(
&self,
verifier_id: Address,
enclave_id: Address,
verifier_idx: U256,
) -> ContractCall<M, ()>
pub fn fail_enclave( &self, verifier_id: Address, enclave_id: Address, verifier_idx: U256, ) -> ContractCall<M, ()>
Calls the contract’s failEnclave
(0x39d920e6) function
Sourcepub fn fail_function_result(
&self,
params: FunctionFailParams,
) -> ContractCall<M, ()>
pub fn fail_function_result( &self, params: FunctionFailParams, ) -> ContractCall<M, ()>
Calls the contract’s failFunctionResult
(0x52c7cc93) function
Sourcepub fn force_override_verify(&self, enclave_id: Address) -> ContractCall<M, ()>
pub fn force_override_verify(&self, enclave_id: Address) -> ContractCall<M, ()>
Calls the contract’s forceOverrideVerify
(0xe231b12f) function
Sourcepub fn forward(
&self,
transactions: Vec<Transaction>,
signatures: Vec<Bytes>,
) -> ContractCall<M, ()>
pub fn forward( &self, transactions: Vec<Transaction>, signatures: Vec<Bytes>, ) -> ContractCall<M, ()>
Calls the contract’s forward
(0x7096052c) function
Sourcepub fn funcs(&self, function_id: Address) -> ContractCall<M, SbFunction>
pub fn funcs(&self, function_id: Address) -> ContractCall<M, SbFunction>
Calls the contract’s funcs
(0x8ef92003) function
Sourcepub fn function_call_settings(
&self,
function_id: Address,
) -> ContractCall<M, FunctionCallSettings>
pub fn function_call_settings( &self, function_id: Address, ) -> ContractCall<M, FunctionCallSettings>
Calls the contract’s functionCallSettings
(0xa30f8d25) function
Sourcepub fn function_calls(&self, call_id: Address) -> ContractCall<M, FunctionCall>
pub fn function_calls(&self, call_id: Address) -> ContractCall<M, FunctionCall>
Calls the contract’s functionCalls
(0x826df326) function
Sourcepub fn function_escrow_fund(&self, account_id: Address) -> ContractCall<M, ()>
pub fn function_escrow_fund(&self, account_id: Address) -> ContractCall<M, ()>
Calls the contract’s functionEscrowFund
(0xba93166c) function
Sourcepub fn function_escrow_withdraw(
&self,
recipient: Address,
function_id: Address,
amount: U256,
) -> ContractCall<M, ()>
pub fn function_escrow_withdraw( &self, recipient: Address, function_id: Address, amount: U256, ) -> ContractCall<M, ()>
Calls the contract’s functionEscrowWithdraw
(0xa29baf1e) function
Sourcepub fn function_exists(&self, function_id: Address) -> ContractCall<M, bool>
pub fn function_exists(&self, function_id: Address) -> ContractCall<M, bool>
Calls the contract’s functionExists
(0xa13001c9) function
Sourcepub fn function_settings(
&self,
function_id: Address,
) -> ContractCall<M, FunctionSettings>
pub fn function_settings( &self, function_id: Address, ) -> ContractCall<M, FunctionSettings>
Calls the contract’s functionSettings
(0xce77efa6) function
Sourcepub fn function_verify(
&self,
enclave_idx: U256,
function_id: Address,
delegated_signer_address: Address,
observed_time: U256,
next_allowed_timestamp: U256,
is_failure: bool,
mr_enclave: [u8; 32],
transactions: Vec<Transaction>,
signatures: Vec<Bytes>,
) -> ContractCall<M, ()>
pub fn function_verify( &self, enclave_idx: U256, function_id: Address, delegated_signer_address: Address, observed_time: U256, next_allowed_timestamp: U256, is_failure: bool, mr_enclave: [u8; 32], transactions: Vec<Transaction>, signatures: Vec<Bytes>, ) -> ContractCall<M, ()>
Calls the contract’s functionVerify
(0xa5625b96) function
Sourcepub fn function_verify_request(
&self,
enclave_idx: U256,
function_id: Address,
delegated_signer_address: Address,
observed_time: U256,
next_allowed_timestamp: U256,
is_failure: bool,
mr_enclave: [u8; 32],
transactions: Vec<Transaction>,
signatures: Vec<Bytes>,
function_call_ids: Vec<Address>,
) -> ContractCall<M, ()>
pub fn function_verify_request( &self, enclave_idx: U256, function_id: Address, delegated_signer_address: Address, observed_time: U256, next_allowed_timestamp: U256, is_failure: bool, mr_enclave: [u8; 32], transactions: Vec<Transaction>, signatures: Vec<Bytes>, function_call_ids: Vec<Address>, ) -> ContractCall<M, ()>
Calls the contract’s functionVerifyRequest
(0xb8390a56) function
Sourcepub fn get_active_function_calls_by_queue(
&self,
queue_id: Address,
) -> ContractCall<M, (Vec<Address>, Vec<FunctionCall>)>
pub fn get_active_function_calls_by_queue( &self, queue_id: Address, ) -> ContractCall<M, (Vec<Address>, Vec<FunctionCall>)>
Calls the contract’s getActiveFunctionCallsByQueue
(0xfa88c651) function
Sourcepub fn get_active_functions_by_queue(
&self,
queue_id: Address,
) -> ContractCall<M, (Vec<Address>, Vec<SbFunction>)>
pub fn get_active_functions_by_queue( &self, queue_id: Address, ) -> ContractCall<M, (Vec<Address>, Vec<SbFunction>)>
Calls the contract’s getActiveFunctionsByQueue
(0x1fc747b7) function
Sourcepub fn get_active_requests_by_queue(
&self,
queue_id: Address,
) -> ContractCall<M, (Vec<Address>, Vec<Request>)>
pub fn get_active_requests_by_queue( &self, queue_id: Address, ) -> ContractCall<M, (Vec<Address>, Vec<Request>)>
Calls the contract’s getActiveRequestsByQueue
(0x55c053c3) function
Sourcepub fn get_active_routines_by_queue(
&self,
queue_id: Address,
) -> ContractCall<M, (Vec<Address>, Vec<Routine>)>
pub fn get_active_routines_by_queue( &self, queue_id: Address, ) -> ContractCall<M, (Vec<Address>, Vec<Routine>)>
Calls the contract’s getActiveRoutinesByQueue
(0x9da3c6eb) function
Calls the contract’s getAggregatorsByAuthority
(0x911c30f3) function
Sourcepub fn get_all_aggregators(
&self,
) -> ContractCall<M, (Vec<Address>, Vec<Aggregator>)>
pub fn get_all_aggregators( &self, ) -> ContractCall<M, (Vec<Address>, Vec<Aggregator>)>
Calls the contract’s getAllAggregators
(0x465c65dd) function
Sourcepub fn get_all_functions(
&self,
) -> ContractCall<M, (Vec<Address>, Vec<SbFunction>)>
pub fn get_all_functions( &self, ) -> ContractCall<M, (Vec<Address>, Vec<SbFunction>)>
Calls the contract’s getAllFunctions
(0xab6418b4) function
Sourcepub fn get_attestation_queue_mr_enclaves(
&self,
queue_id: Address,
) -> ContractCall<M, Vec<[u8; 32]>>
pub fn get_attestation_queue_mr_enclaves( &self, queue_id: Address, ) -> ContractCall<M, Vec<[u8; 32]>>
Calls the contract’s getAttestationQueueMrEnclaves
(0x0f3bc418) function
Sourcepub fn get_current_interval_id(
&self,
aggregator_id: Address,
) -> ContractCall<M, u128>
pub fn get_current_interval_id( &self, aggregator_id: Address, ) -> ContractCall<M, u128>
Calls the contract’s getCurrentIntervalId
(0x1dc1da86) function
Sourcepub fn get_enclave_idx(&self, enclave_id: Address) -> ContractCall<M, I256>
pub fn get_enclave_idx(&self, enclave_id: Address) -> ContractCall<M, I256>
Calls the contract’s getEnclaveIdx
(0x21fb3bbc) function
Sourcepub fn get_enclaves(&self, queue_id: Address) -> ContractCall<M, Vec<Address>>
pub fn get_enclaves(&self, queue_id: Address) -> ContractCall<M, Vec<Address>>
Calls the contract’s getEnclaves
(0x340dd88b) function
Sourcepub fn get_function_mr_enclaves(
&self,
function_id: Address,
) -> ContractCall<M, Vec<[u8; 32]>>
pub fn get_function_mr_enclaves( &self, function_id: Address, ) -> ContractCall<M, Vec<[u8; 32]>>
Calls the contract’s getFunctionMrEnclaves
(0x526112ce) function
Sourcepub fn get_function_permitted_callers(
&self,
function_id: Address,
) -> ContractCall<M, Vec<Address>>
pub fn get_function_permitted_callers( &self, function_id: Address, ) -> ContractCall<M, Vec<Address>>
Calls the contract’s getFunctionPermittedCallers
(0xafdcbd6a) function
Calls the contract’s getFunctionsByAuthority
(0x357f633f) function
Sourcepub fn get_interval_result(
&self,
aggregator_id: Address,
interval_id: u128,
) -> ContractCall<M, (I256, U256, U256)>
pub fn get_interval_result( &self, aggregator_id: Address, interval_id: u128, ) -> ContractCall<M, (I256, U256, U256)>
Calls the contract’s getIntervalResult
(0x3d24ef6e) function
Sourcepub fn get_oracle_idx(&self, oracle_id: Address) -> ContractCall<M, I256>
pub fn get_oracle_idx(&self, oracle_id: Address) -> ContractCall<M, I256>
Calls the contract’s getOracleIdx
(0xd87dd0ac) function
Sourcepub fn get_oracle_queue_allowed_mr_enclaves(
&self,
queue_id: Address,
) -> ContractCall<M, Vec<[u8; 32]>>
pub fn get_oracle_queue_allowed_mr_enclaves( &self, queue_id: Address, ) -> ContractCall<M, Vec<[u8; 32]>>
Calls the contract’s getOracleQueueAllowedMrEnclaves
(0xf04b0f59) function
Sourcepub fn get_oracles(&self, queue_id: Address) -> ContractCall<M, Vec<Address>>
pub fn get_oracles(&self, queue_id: Address) -> ContractCall<M, Vec<Address>>
Calls the contract’s getOracles
(0x8e749281) function
Sourcepub fn get_permission(
&self,
granter: Address,
grantee: Address,
) -> ContractCall<M, U256>
pub fn get_permission( &self, granter: Address, grantee: Address, ) -> ContractCall<M, U256>
Calls the contract’s getPermission
(0x910185dd) function
Sourcepub fn get_requests_by_function_id(
&self,
function_id: Address,
) -> ContractCall<M, (Vec<Address>, Vec<Request>)>
pub fn get_requests_by_function_id( &self, function_id: Address, ) -> ContractCall<M, (Vec<Address>, Vec<Request>)>
Calls the contract’s getRequestsByFunctionId
(0xb68e3ace) function
Calls the contract’s getRoutinesByAuthority
(0xb36afb5a) function
Sourcepub fn get_routines_by_function_id(
&self,
function_id: Address,
) -> ContractCall<M, (Vec<Address>, Vec<Routine>)>
pub fn get_routines_by_function_id( &self, function_id: Address, ) -> ContractCall<M, (Vec<Address>, Vec<Routine>)>
Calls the contract’s getRoutinesByFunctionId
(0x27c66c0f) function
Sourcepub fn get_stake_for_enclave(
&self,
enclave_id: Address,
) -> ContractCall<M, Stake>
pub fn get_stake_for_enclave( &self, enclave_id: Address, ) -> ContractCall<M, Stake>
Calls the contract’s getStakeForEnclave
(0x376d9b41) function
Sourcepub fn get_stake_for_enclave_with_token(
&self,
enclave_id: Address,
token: Address,
) -> ContractCall<M, Stake>
pub fn get_stake_for_enclave_with_token( &self, enclave_id: Address, token: Address, ) -> ContractCall<M, Stake>
Calls the contract’s getStakeForEnclaveWithToken
(0x3ff8f2af) function
Sourcepub fn get_staking_config(
&self,
queue_id: Address,
) -> ContractCall<M, StakingConfig>
pub fn get_staking_config( &self, queue_id: Address, ) -> ContractCall<M, StakingConfig>
Calls the contract’s getStakingConfig
(0x5133a68c) function
Sourcepub fn get_transaction_hash(
&self,
expiration_time_seconds: U256,
gas_limit: U256,
value: U256,
to: Address,
from: Address,
data: Bytes,
) -> ContractCall<M, [u8; 32]>
pub fn get_transaction_hash( &self, expiration_time_seconds: U256, gas_limit: U256, value: U256, to: Address, from: Address, data: Bytes, ) -> ContractCall<M, [u8; 32]>
Calls the contract’s getTransactionHash
(0xd93f1970) function
Sourcepub fn has_permission(
&self,
granter: Address,
grantee: Address,
permission: U256,
) -> ContractCall<M, bool>
pub fn has_permission( &self, granter: Address, grantee: Address, permission: U256, ) -> ContractCall<M, bool>
Calls the contract’s hasPermission
(0x8b01813d) function
Sourcepub fn init(&self) -> ContractCall<M, ()>
pub fn init(&self) -> ContractCall<M, ()>
Calls the contract’s init
(0xe1c7392a) function
Sourcepub fn initialize(&self) -> ContractCall<M, ()>
pub fn initialize(&self) -> ContractCall<M, ()>
Calls the contract’s initialize
(0x8129fc1c) function
Sourcepub fn is_admin(&self, sender: Address) -> ContractCall<M, bool>
pub fn is_admin(&self, sender: Address) -> ContractCall<M, bool>
Calls the contract’s isAdmin
(0x24d7806c) function
Sourcepub fn is_allowed(&self, sender: Address) -> ContractCall<M, bool>
pub fn is_allowed(&self, sender: Address) -> ContractCall<M, bool>
Calls the contract’s isAllowed
(0xbabcc539) function
Sourcepub fn is_enclave_valid(&self, enclave_id: Address) -> ContractCall<M, bool>
pub fn is_enclave_valid(&self, enclave_id: Address) -> ContractCall<M, bool>
Calls the contract’s isEnclaveValid
(0xfb4acdfe) function
Sourcepub fn is_trusted_forwarder(&self, p0: Address) -> ContractCall<M, bool>
pub fn is_trusted_forwarder(&self, p0: Address) -> ContractCall<M, bool>
Calls the contract’s isTrustedForwarder
(0x572b6c05) function
Sourcepub fn latest_result(
&self,
aggregator_id: Address,
) -> ContractCall<M, (I256, U256)>
pub fn latest_result( &self, aggregator_id: Address, ) -> ContractCall<M, (I256, U256)>
Calls the contract’s latestResult
(0xfab005a2) function
Sourcepub fn open_interval(&self, aggregator_id: Address) -> ContractCall<M, ()>
pub fn open_interval(&self, aggregator_id: Address) -> ContractCall<M, ()>
Calls the contract’s openInterval
(0x0f2544be) function
Sourcepub fn oracle_garbage_collect(
&self,
oracle_id: Address,
oracle_idx: U256,
) -> ContractCall<M, ()>
pub fn oracle_garbage_collect( &self, oracle_id: Address, oracle_idx: U256, ) -> ContractCall<M, ()>
Calls the contract’s oracleGarbageCollect
(0x71da68ff) function
Sourcepub fn oracle_heartbeat(&self, oracle_id: Address) -> ContractCall<M, ()>
pub fn oracle_heartbeat(&self, oracle_id: Address) -> ContractCall<M, ()>
Calls the contract’s oracleHeartbeat
(0xf53b638c) function
Sourcepub fn oracle_queues(&self, queue_id: Address) -> ContractCall<M, OracleQueue>
pub fn oracle_queues(&self, queue_id: Address) -> ContractCall<M, OracleQueue>
Calls the contract’s oracleQueues
(0xf2378e88) function
Sourcepub fn oracles(&self, oracle_id: Address) -> ContractCall<M, Oracle>
pub fn oracles(&self, oracle_id: Address) -> ContractCall<M, Oracle>
Calls the contract’s oracles
(0xaddd5099) function
Sourcepub fn owner(&self) -> ContractCall<M, Address>
pub fn owner(&self) -> ContractCall<M, Address>
Calls the contract’s owner
(0x8da5cb5b) function
Sourcepub fn prepare_unstake(&self, enclave_id: Address) -> ContractCall<M, ()>
pub fn prepare_unstake(&self, enclave_id: Address) -> ContractCall<M, ()>
Calls the contract’s prepareUnstake
(0xb8d35d6a) function
Sourcepub fn queue_attestation_configs(
&self,
queue_id: Address,
) -> ContractCall<M, AttestationConfig>
pub fn queue_attestation_configs( &self, queue_id: Address, ) -> ContractCall<M, AttestationConfig>
Calls the contract’s queueAttestationConfigs
(0x6ddc9122) function
Sourcepub fn recover_stake_with_token(
&self,
enclave_id: Address,
token: Address,
amount: U256,
) -> ContractCall<M, ()>
pub fn recover_stake_with_token( &self, enclave_id: Address, token: Address, amount: U256, ) -> ContractCall<M, ()>
Calls the contract’s recoverStakeWithToken
(0x5e8e1ad0) function
Sourcepub fn remove_mr_enclave_from_attestation_queue(
&self,
queue_id: Address,
mr_enclave: [u8; 32],
) -> ContractCall<M, ()>
pub fn remove_mr_enclave_from_attestation_queue( &self, queue_id: Address, mr_enclave: [u8; 32], ) -> ContractCall<M, ()>
Calls the contract’s removeMrEnclaveFromAttestationQueue
(0x083f30cf) function
Sourcepub fn remove_mr_enclave_from_function(
&self,
function_id: Address,
mr_enclave: [u8; 32],
) -> ContractCall<M, ()>
pub fn remove_mr_enclave_from_function( &self, function_id: Address, mr_enclave: [u8; 32], ) -> ContractCall<M, ()>
Calls the contract’s removeMrEnclaveFromFunction
(0xf0184db9) function
Sourcepub fn remove_mr_enclave_from_oracle_queue(
&self,
queue_id: Address,
mr_enclave: [u8; 32],
) -> ContractCall<M, ()>
pub fn remove_mr_enclave_from_oracle_queue( &self, queue_id: Address, mr_enclave: [u8; 32], ) -> ContractCall<M, ()>
Calls the contract’s removeMrEnclaveFromOracleQueue
(0x262955d8) function
Sourcepub fn request_fund(&self, request_id: Address) -> ContractCall<M, ()>
pub fn request_fund(&self, request_id: Address) -> ContractCall<M, ()>
Calls the contract’s requestFund
(0x52a061d7) function
Sourcepub fn request_withdrawal(
&self,
request_id: Address,
recipient: Address,
amount: U256,
) -> ContractCall<M, ()>
pub fn request_withdrawal( &self, request_id: Address, recipient: Address, amount: U256, ) -> ContractCall<M, ()>
Calls the contract’s requestWithdrawal
(0x8985646a) function
Sourcepub fn requests(&self, request_id: Address) -> ContractCall<M, Request>
pub fn requests(&self, request_id: Address) -> ContractCall<M, Request>
Calls the contract’s requests
(0x74adad1d) function
Sourcepub fn rotate_enclave_signer(
&self,
enclave_id: Address,
new_signer: Address,
) -> ContractCall<M, ()>
pub fn rotate_enclave_signer( &self, enclave_id: Address, new_signer: Address, ) -> ContractCall<M, ()>
Calls the contract’s rotateEnclaveSigner
(0x2628b3a9) function
Sourcepub fn rotate_oracle_signer(
&self,
oracle_id: Address,
new_signer: Address,
) -> ContractCall<M, ()>
pub fn rotate_oracle_signer( &self, oracle_id: Address, new_signer: Address, ) -> ContractCall<M, ()>
Calls the contract’s rotateOracleSigner
(0x4d1b776d) function
Sourcepub fn routine_escrow_fund(&self, routine_id: Address) -> ContractCall<M, ()>
pub fn routine_escrow_fund(&self, routine_id: Address) -> ContractCall<M, ()>
Calls the contract’s routineEscrowFund
(0x5d4e4594) function
Sourcepub fn routine_escrow_withdraw(
&self,
routine_id: Address,
amount: U256,
) -> ContractCall<M, ()>
pub fn routine_escrow_withdraw( &self, routine_id: Address, amount: U256, ) -> ContractCall<M, ()>
Calls the contract’s routineEscrowWithdraw
(0xfab08683) function
Sourcepub fn routine_exists(&self, routine_id: Address) -> ContractCall<M, bool>
pub fn routine_exists(&self, routine_id: Address) -> ContractCall<M, bool>
Calls the contract’s routineExists
(0xc98d9be8) function
Sourcepub fn routines(&self, routine_id: Address) -> ContractCall<M, Routine>
pub fn routines(&self, routine_id: Address) -> ContractCall<M, Routine>
Calls the contract’s routines
(0xfdcc54d2) function
Sourcepub fn save_results(
&self,
ids: Vec<Address>,
results: Vec<I256>,
queue_id: Address,
oracle_idx: U256,
) -> ContractCall<M, ()>
pub fn save_results( &self, ids: Vec<Address>, results: Vec<I256>, queue_id: Address, oracle_idx: U256, ) -> ContractCall<M, ()>
Calls the contract’s saveResults
(0x735e3555) function
Sourcepub fn send_delayed_request(
&self,
request_id: Address,
function_id: Address,
params: Bytes,
start_after: U256,
) -> ContractCall<M, ()>
pub fn send_delayed_request( &self, request_id: Address, function_id: Address, params: Bytes, start_after: U256, ) -> ContractCall<M, ()>
Calls the contract’s sendDelayedRequest
(0x80eb181e) function
Sourcepub fn send_request(
&self,
function_id: Address,
params: Bytes,
) -> ContractCall<M, Address>
pub fn send_request( &self, function_id: Address, params: Bytes, ) -> ContractCall<M, Address>
Calls the contract’s sendRequest
(0x62d3fe46) function
Sourcepub fn send_request_with_id(
&self,
request_id: Address,
function_id: Address,
params: Bytes,
) -> ContractCall<M, Address>
pub fn send_request_with_id( &self, request_id: Address, function_id: Address, params: Bytes, ) -> ContractCall<M, Address>
Calls the contract’s sendRequestWithId
(0x264c1450) function
Sourcepub fn set_admin(&self, sender: Address, status: bool) -> ContractCall<M, ()>
pub fn set_admin(&self, sender: Address, status: bool) -> ContractCall<M, ()>
Calls the contract’s setAdmin
(0x4b0bddd2) function
Sourcepub fn set_aggregator_config(
&self,
aggregator_id: Address,
name: String,
authority: Address,
batch_size: U256,
min_update_delay_seconds: U256,
min_oracle_results: U256,
jobs_hash: String,
queue_id: Address,
variance_threshold: U256,
min_job_results: U256,
force_report_period: U256,
enable_history: bool,
) -> ContractCall<M, ()>
pub fn set_aggregator_config( &self, aggregator_id: Address, name: String, authority: Address, batch_size: U256, min_update_delay_seconds: U256, min_oracle_results: U256, jobs_hash: String, queue_id: Address, variance_threshold: U256, min_job_results: U256, force_report_period: U256, enable_history: bool, ) -> ContractCall<M, ()>
Calls the contract’s setAggregatorConfig
(0xdd0ad73a) function
Sourcepub fn set_allowed(&self, sender: Address, status: bool) -> ContractCall<M, ()>
pub fn set_allowed(&self, sender: Address, status: bool) -> ContractCall<M, ()>
Calls the contract’s setAllowed
(0x4697f05d) function
Sourcepub fn set_attestation_queue_config(
&self,
queue_id: Address,
authority: Address,
max_size: U256,
reward: U256,
enclave_timeout: U256,
max_enclave_verification_age: U256,
allow_authority_override_after: U256,
require_authority_heartbeat_permission: bool,
require_usage_permissions: bool,
max_consecutive_function_failures: U256,
) -> ContractCall<M, ()>
pub fn set_attestation_queue_config( &self, queue_id: Address, authority: Address, max_size: U256, reward: U256, enclave_timeout: U256, max_enclave_verification_age: U256, allow_authority_override_after: U256, require_authority_heartbeat_permission: bool, require_usage_permissions: bool, max_consecutive_function_failures: U256, ) -> ContractCall<M, ()>
Calls the contract’s setAttestationQueueConfig
(0xf7d48307) function
Sourcepub fn set_attestation_queue_permission(
&self,
queue_id: Address,
grantee: Address,
permission: U256,
on: bool,
) -> ContractCall<M, ()>
pub fn set_attestation_queue_permission( &self, queue_id: Address, grantee: Address, permission: U256, on: bool, ) -> ContractCall<M, ()>
Calls the contract’s setAttestationQueuePermission
(0xa77a07d3) function
Sourcepub fn set_function_call_settings(
&self,
function_id: Address,
require_estimated_run_cost_fee: bool,
minimum_fee: U256,
max_gas_cost: U256,
require_caller_pay_full_cost: bool,
require_sender_be_return_address: bool,
) -> ContractCall<M, ()>
pub fn set_function_call_settings( &self, function_id: Address, require_estimated_run_cost_fee: bool, minimum_fee: U256, max_gas_cost: U256, require_caller_pay_full_cost: bool, require_sender_be_return_address: bool, ) -> ContractCall<M, ()>
Calls the contract’s setFunctionCallSettings
(0x6b7ef38b) function
Sourcepub fn set_function_config(
&self,
function_id: Address,
name: String,
authority: Address,
container_registry: String,
container: String,
version: String,
schedule: String,
params_schema: String,
permitted_callers: Vec<Address>,
) -> ContractCall<M, ()>
pub fn set_function_config( &self, function_id: Address, name: String, authority: Address, container_registry: String, container: String, version: String, schedule: String, params_schema: String, permitted_callers: Vec<Address>, ) -> ContractCall<M, ()>
Calls the contract’s setFunctionConfig
(0x822e99d5) function
Sourcepub fn set_function_deactivated(
&self,
function_id: Address,
) -> ContractCall<M, ()>
pub fn set_function_deactivated( &self, function_id: Address, ) -> ContractCall<M, ()>
Calls the contract’s setFunctionDeactivated
(0x725483a5) function
Sourcepub fn set_function_settings(
&self,
function_id: Address,
settings: FunctionSettings,
) -> ContractCall<M, ()>
pub fn set_function_settings( &self, function_id: Address, settings: FunctionSettings, ) -> ContractCall<M, ()>
Calls the contract’s setFunctionSettings
(0xfeb0de89) function
Sourcepub fn set_oracle_config(
&self,
oracle_id: Address,
name: String,
signer: Address,
queue_id: Address,
authority: Address,
) -> ContractCall<M, ()>
pub fn set_oracle_config( &self, oracle_id: Address, name: String, signer: Address, queue_id: Address, authority: Address, ) -> ContractCall<M, ()>
Calls the contract’s setOracleConfig
(0xf50b5ed0) function
Sourcepub fn set_oracle_queue_attestation_config(
&self,
queue_id: Address,
attestation_queue_id: Address,
mr_enclaves: Vec<[u8; 32]>,
require_valid_enclave: bool,
require_heartbeat_permission: bool,
) -> ContractCall<M, ()>
pub fn set_oracle_queue_attestation_config( &self, queue_id: Address, attestation_queue_id: Address, mr_enclaves: Vec<[u8; 32]>, require_valid_enclave: bool, require_heartbeat_permission: bool, ) -> ContractCall<M, ()>
Calls the contract’s setOracleQueueAttestationConfig
(0x88033af5) function
Sourcepub fn set_oracle_queue_config(
&self,
queue_id: Address,
name: String,
authority: Address,
unpermissioned_feeds_enabled: bool,
max_size: U256,
reward: U256,
oracle_timeout: U256,
) -> ContractCall<M, ()>
pub fn set_oracle_queue_config( &self, queue_id: Address, name: String, authority: Address, unpermissioned_feeds_enabled: bool, max_size: U256, reward: U256, oracle_timeout: U256, ) -> ContractCall<M, ()>
Calls the contract’s setOracleQueueConfig
(0xb6590411) function
Sourcepub fn set_oracle_queue_permission(
&self,
queue_id: Address,
grantee: Address,
permission: U256,
on: bool,
) -> ContractCall<M, ()>
pub fn set_oracle_queue_permission( &self, queue_id: Address, grantee: Address, permission: U256, on: bool, ) -> ContractCall<M, ()>
Calls the contract’s setOracleQueuePermission
(0x01fc1ba2) function
Sourcepub fn set_staking_config(
&self,
queue_id: Address,
token: Address,
staking_amount: U256,
staking_period: U256,
unstaking_period: U256,
) -> ContractCall<M, ()>
pub fn set_staking_config( &self, queue_id: Address, token: Address, staking_amount: U256, staking_period: U256, unstaking_period: U256, ) -> ContractCall<M, ()>
Calls the contract’s setStakingConfig
(0xf22644c2) function
Sourcepub fn set_tolerated_timestamp_discrepancy(
&self,
tolerance: U256,
) -> ContractCall<M, ()>
pub fn set_tolerated_timestamp_discrepancy( &self, tolerance: U256, ) -> ContractCall<M, ()>
Calls the contract’s setToleratedTimestampDiscrepancy
(0x101277b2) function
Sourcepub fn slash_stake(
&self,
enclave_id: Address,
amount: U256,
) -> ContractCall<M, ()>
pub fn slash_stake( &self, enclave_id: Address, amount: U256, ) -> ContractCall<M, ()>
Calls the contract’s slashStake
(0x98d1c5a8) function
Sourcepub fn supports_interface(&self, interface_id: [u8; 4]) -> ContractCall<M, bool>
pub fn supports_interface(&self, interface_id: [u8; 4]) -> ContractCall<M, bool>
Calls the contract’s supportsInterface
(0x01ffc9a7) function
Sourcepub fn total_staked(
&self,
queue_id: Address,
token: Address,
) -> ContractCall<M, U256>
pub fn total_staked( &self, queue_id: Address, token: Address, ) -> ContractCall<M, U256>
Calls the contract’s totalStaked
(0xf21630cb) function
Sourcepub fn total_supply(&self) -> ContractCall<M, U256>
pub fn total_supply(&self) -> ContractCall<M, U256>
Calls the contract’s totalSupply
(0x18160ddd) function
Sourcepub fn transfer(&self, to: Address, value: U256) -> ContractCall<M, bool>
pub fn transfer(&self, to: Address, value: U256) -> ContractCall<M, bool>
Calls the contract’s transfer
(0xa9059cbb) function
Sourcepub fn transfer_from(
&self,
from: Address,
to: Address,
value: U256,
) -> ContractCall<M, bool>
pub fn transfer_from( &self, from: Address, to: Address, value: U256, ) -> ContractCall<M, bool>
Calls the contract’s transferFrom
(0x23b872dd) function
Sourcepub fn transfer_ownership(&self, new_owner: Address) -> ContractCall<M, ()>
pub fn transfer_ownership(&self, new_owner: Address) -> ContractCall<M, ()>
Calls the contract’s transferOwnership
(0xf2fde38b) function
Sourcepub fn unstake(&self, enclave_id: Address, amount: U256) -> ContractCall<M, ()>
pub fn unstake(&self, enclave_id: Address, amount: U256) -> ContractCall<M, ()>
Calls the contract’s unstake
(0xc2a672e0) function
Sourcepub fn update_enclave(
&self,
enclave_id: Address,
cid: Bytes,
) -> ContractCall<M, ()>
pub fn update_enclave( &self, enclave_id: Address, cid: Bytes, ) -> ContractCall<M, ()>
Calls the contract’s updateEnclave
(0x5cd6ac0c) function
Sourcepub fn update_routine(
&self,
routine_id: Address,
function_id: Address,
authority: Address,
params: Bytes,
schedule: String,
) -> ContractCall<M, ()>
pub fn update_routine( &self, routine_id: Address, function_id: Address, authority: Address, params: Bytes, schedule: String, ) -> ContractCall<M, ()>
Calls the contract’s updateRoutine
(0x9300c999) function
Sourcepub fn validate(
&self,
signer: Address,
attestation_queue_id: Address,
valid_measurements: Vec<[u8; 32]>,
) -> ContractCall<M, ()>
pub fn validate( &self, signer: Address, attestation_queue_id: Address, valid_measurements: Vec<[u8; 32]>, ) -> ContractCall<M, ()>
Calls the contract’s validate
(0x1755a7f8) function
Sourcepub fn verify_callback_params(
&self,
call_ids: Vec<Address>,
hashes: Vec<[u8; 32]>,
) -> ContractCall<M, ()>
pub fn verify_callback_params( &self, call_ids: Vec<Address>, hashes: Vec<[u8; 32]>, ) -> ContractCall<M, ()>
Calls the contract’s verifyCallbackParams
(0x9c5eb6d9) function
Sourcepub fn verify_enclave(
&self,
verifier_id: Address,
enclave_id: Address,
enclave_idx: U256,
timestamp: U256,
mr_enclave: [u8; 32],
) -> ContractCall<M, ()>
pub fn verify_enclave( &self, verifier_id: Address, enclave_id: Address, enclave_idx: U256, timestamp: U256, mr_enclave: [u8; 32], ) -> ContractCall<M, ()>
Calls the contract’s verifyEnclave
(0xef0ebd71) function
Sourcepub fn verify_function_result(
&self,
params: FunctionVerifyParams,
) -> ContractCall<M, ()>
pub fn verify_function_result( &self, params: FunctionVerifyParams, ) -> ContractCall<M, ()>
Calls the contract’s verifyFunctionResult
(0x3bd7b617) function
Sourcepub fn view_aggregator_results(
&self,
aggregator_id: Address,
) -> ContractCall<M, Vec<Result>>
pub fn view_aggregator_results( &self, aggregator_id: Address, ) -> ContractCall<M, Vec<Result>>
Calls the contract’s viewAggregatorResults
(0xde866484) function
Sourcepub fn view_latest_result(
&self,
aggregator_id: Address,
) -> ContractCall<M, (I256, U256)>
pub fn view_latest_result( &self, aggregator_id: Address, ) -> ContractCall<M, (I256, U256)>
Calls the contract’s viewLatestResult
(0xbdf5edef) function
Sourcepub fn add_mr_enclave_filter(&self) -> Event<Arc<M>, M, AddMrEnclaveFilter>
pub fn add_mr_enclave_filter(&self) -> Event<Arc<M>, M, AddMrEnclaveFilter>
Gets the contract’s AddMrEnclave
event
Sourcepub fn aggregator_account_init_filter(
&self,
) -> Event<Arc<M>, M, AggregatorAccountInitFilter>
pub fn aggregator_account_init_filter( &self, ) -> Event<Arc<M>, M, AggregatorAccountInitFilter>
Gets the contract’s AggregatorAccountInit
event
Sourcepub fn aggregator_fund_event_filter(
&self,
) -> Event<Arc<M>, M, AggregatorFundEventFilter>
pub fn aggregator_fund_event_filter( &self, ) -> Event<Arc<M>, M, AggregatorFundEventFilter>
Gets the contract’s AggregatorFundEvent
event
Sourcepub fn aggregator_interval_refreshed_filter(
&self,
) -> Event<Arc<M>, M, AggregatorIntervalRefreshedFilter>
pub fn aggregator_interval_refreshed_filter( &self, ) -> Event<Arc<M>, M, AggregatorIntervalRefreshedFilter>
Gets the contract’s AggregatorIntervalRefreshed
event
Sourcepub fn aggregator_open_interval_filter(
&self,
) -> Event<Arc<M>, M, AggregatorOpenIntervalFilter>
pub fn aggregator_open_interval_filter( &self, ) -> Event<Arc<M>, M, AggregatorOpenIntervalFilter>
Gets the contract’s AggregatorOpenInterval
event
Sourcepub fn aggregator_read_filter(&self) -> Event<Arc<M>, M, AggregatorReadFilter>
pub fn aggregator_read_filter(&self) -> Event<Arc<M>, M, AggregatorReadFilter>
Gets the contract’s AggregatorRead
event
Sourcepub fn aggregator_save_result_filter(
&self,
) -> Event<Arc<M>, M, AggregatorSaveResultFilter>
pub fn aggregator_save_result_filter( &self, ) -> Event<Arc<M>, M, AggregatorSaveResultFilter>
Gets the contract’s AggregatorSaveResult
event
Sourcepub fn aggregator_settings_updated_filter(
&self,
) -> Event<Arc<M>, M, AggregatorSettingsUpdatedFilter>
pub fn aggregator_settings_updated_filter( &self, ) -> Event<Arc<M>, M, AggregatorSettingsUpdatedFilter>
Gets the contract’s AggregatorSettingsUpdated
event
Sourcepub fn aggregator_update_filter(
&self,
) -> Event<Arc<M>, M, AggregatorUpdateFilter>
pub fn aggregator_update_filter( &self, ) -> Event<Arc<M>, M, AggregatorUpdateFilter>
Gets the contract’s AggregatorUpdate
event
Sourcepub fn aggregator_withdraw_event_filter(
&self,
) -> Event<Arc<M>, M, AggregatorWithdrawEventFilter>
pub fn aggregator_withdraw_event_filter( &self, ) -> Event<Arc<M>, M, AggregatorWithdrawEventFilter>
Gets the contract’s AggregatorWithdrawEvent
event
Sourcepub fn approval_filter(&self) -> Event<Arc<M>, M, ApprovalFilter>
pub fn approval_filter(&self) -> Event<Arc<M>, M, ApprovalFilter>
Gets the contract’s Approval
event
Sourcepub fn attestation_queue_account_init_filter(
&self,
) -> Event<Arc<M>, M, AttestationQueueAccountInitFilter>
pub fn attestation_queue_account_init_filter( &self, ) -> Event<Arc<M>, M, AttestationQueueAccountInitFilter>
Gets the contract’s AttestationQueueAccountInit
event
Sourcepub fn attestation_queue_permission_updated_filter(
&self,
) -> Event<Arc<M>, M, AttestationQueuePermissionUpdatedFilter>
pub fn attestation_queue_permission_updated_filter( &self, ) -> Event<Arc<M>, M, AttestationQueuePermissionUpdatedFilter>
Gets the contract’s AttestationQueuePermissionUpdated
event
Sourcepub fn attestation_queue_set_config_filter(
&self,
) -> Event<Arc<M>, M, AttestationQueueSetConfigFilter>
pub fn attestation_queue_set_config_filter( &self, ) -> Event<Arc<M>, M, AttestationQueueSetConfigFilter>
Gets the contract’s AttestationQueueSetConfig
event
Sourcepub fn diamond_cut_filter(&self) -> Event<Arc<M>, M, DiamondCutFilter>
pub fn diamond_cut_filter(&self) -> Event<Arc<M>, M, DiamondCutFilter>
Gets the contract’s DiamondCut
event
Sourcepub fn enclave_account_init_filter(
&self,
) -> Event<Arc<M>, M, EnclaveAccountInitFilter>
pub fn enclave_account_init_filter( &self, ) -> Event<Arc<M>, M, EnclaveAccountInitFilter>
Gets the contract’s EnclaveAccountInit
event
Sourcepub fn enclave_gc_filter(&self) -> Event<Arc<M>, M, EnclaveGCFilter>
pub fn enclave_gc_filter(&self) -> Event<Arc<M>, M, EnclaveGCFilter>
Gets the contract’s EnclaveGC
event
Sourcepub fn enclave_heartbeat_filter(
&self,
) -> Event<Arc<M>, M, EnclaveHeartbeatFilter>
pub fn enclave_heartbeat_filter( &self, ) -> Event<Arc<M>, M, EnclaveHeartbeatFilter>
Gets the contract’s EnclaveHeartbeat
event
Sourcepub fn enclave_payout_event_filter(
&self,
) -> Event<Arc<M>, M, EnclavePayoutEventFilter>
pub fn enclave_payout_event_filter( &self, ) -> Event<Arc<M>, M, EnclavePayoutEventFilter>
Gets the contract’s EnclavePayoutEvent
event
Sourcepub fn enclave_rotate_signer_filter(
&self,
) -> Event<Arc<M>, M, EnclaveRotateSignerFilter>
pub fn enclave_rotate_signer_filter( &self, ) -> Event<Arc<M>, M, EnclaveRotateSignerFilter>
Gets the contract’s EnclaveRotateSigner
event
Sourcepub fn enclave_verify_request_filter(
&self,
) -> Event<Arc<M>, M, EnclaveVerifyRequestFilter>
pub fn enclave_verify_request_filter( &self, ) -> Event<Arc<M>, M, EnclaveVerifyRequestFilter>
Gets the contract’s EnclaveVerifyRequest
event
Sourcepub fn function_account_init_filter(
&self,
) -> Event<Arc<M>, M, FunctionAccountInitFilter>
pub fn function_account_init_filter( &self, ) -> Event<Arc<M>, M, FunctionAccountInitFilter>
Gets the contract’s FunctionAccountInit
event
Sourcepub fn function_call_event_filter(
&self,
) -> Event<Arc<M>, M, FunctionCallEventFilter>
pub fn function_call_event_filter( &self, ) -> Event<Arc<M>, M, FunctionCallEventFilter>
Gets the contract’s FunctionCallEvent
event
Sourcepub fn function_call_fund_filter(
&self,
) -> Event<Arc<M>, M, FunctionCallFundFilter>
pub fn function_call_fund_filter( &self, ) -> Event<Arc<M>, M, FunctionCallFundFilter>
Gets the contract’s FunctionCallFund
event
Sourcepub fn function_fund_filter(&self) -> Event<Arc<M>, M, FunctionFundFilter>
pub fn function_fund_filter(&self) -> Event<Arc<M>, M, FunctionFundFilter>
Gets the contract’s FunctionFund
event
Sourcepub fn function_withdraw_filter(
&self,
) -> Event<Arc<M>, M, FunctionWithdrawFilter>
pub fn function_withdraw_filter( &self, ) -> Event<Arc<M>, M, FunctionWithdrawFilter>
Gets the contract’s FunctionWithdraw
event
Sourcepub fn oracle_account_init_filter(
&self,
) -> Event<Arc<M>, M, OracleAccountInitFilter>
pub fn oracle_account_init_filter( &self, ) -> Event<Arc<M>, M, OracleAccountInitFilter>
Gets the contract’s OracleAccountInit
event
Sourcepub fn oracle_gc_filter(&self) -> Event<Arc<M>, M, OracleGCFilter>
pub fn oracle_gc_filter(&self) -> Event<Arc<M>, M, OracleGCFilter>
Gets the contract’s OracleGC
event
Sourcepub fn oracle_heartbeat_filter(&self) -> Event<Arc<M>, M, OracleHeartbeatFilter>
pub fn oracle_heartbeat_filter(&self) -> Event<Arc<M>, M, OracleHeartbeatFilter>
Gets the contract’s OracleHeartbeat
event
Sourcepub fn oracle_payout_event_filter(
&self,
) -> Event<Arc<M>, M, OraclePayoutEventFilter>
pub fn oracle_payout_event_filter( &self, ) -> Event<Arc<M>, M, OraclePayoutEventFilter>
Gets the contract’s OraclePayoutEvent
event
Sourcepub fn oracle_queue_account_init_filter(
&self,
) -> Event<Arc<M>, M, OracleQueueAccountInitFilter>
pub fn oracle_queue_account_init_filter( &self, ) -> Event<Arc<M>, M, OracleQueueAccountInitFilter>
Gets the contract’s OracleQueueAccountInit
event
Sourcepub fn oracle_queue_add_mr_enclave_filter(
&self,
) -> Event<Arc<M>, M, OracleQueueAddMrEnclaveFilter>
pub fn oracle_queue_add_mr_enclave_filter( &self, ) -> Event<Arc<M>, M, OracleQueueAddMrEnclaveFilter>
Gets the contract’s OracleQueueAddMrEnclave
event
Sourcepub fn oracle_queue_remove_mr_enclave_filter(
&self,
) -> Event<Arc<M>, M, OracleQueueRemoveMrEnclaveFilter>
pub fn oracle_queue_remove_mr_enclave_filter( &self, ) -> Event<Arc<M>, M, OracleQueueRemoveMrEnclaveFilter>
Gets the contract’s OracleQueueRemoveMrEnclave
event
Sourcepub fn oracle_queue_set_attestation_config_filter(
&self,
) -> Event<Arc<M>, M, OracleQueueSetAttestationConfigFilter>
pub fn oracle_queue_set_attestation_config_filter( &self, ) -> Event<Arc<M>, M, OracleQueueSetAttestationConfigFilter>
Gets the contract’s OracleQueueSetAttestationConfig
event
Sourcepub fn oracle_queue_set_config_filter(
&self,
) -> Event<Arc<M>, M, OracleQueueSetConfigFilter>
pub fn oracle_queue_set_config_filter( &self, ) -> Event<Arc<M>, M, OracleQueueSetConfigFilter>
Gets the contract’s OracleQueueSetConfig
event
Sourcepub fn oracle_queue_set_permission_filter(
&self,
) -> Event<Arc<M>, M, OracleQueueSetPermissionFilter>
pub fn oracle_queue_set_permission_filter( &self, ) -> Event<Arc<M>, M, OracleQueueSetPermissionFilter>
Gets the contract’s OracleQueueSetPermission
event
Sourcepub fn oracle_rotate_signer_filter(
&self,
) -> Event<Arc<M>, M, OracleRotateSignerFilter>
pub fn oracle_rotate_signer_filter( &self, ) -> Event<Arc<M>, M, OracleRotateSignerFilter>
Gets the contract’s OracleRotateSigner
event
Sourcepub fn oracle_set_config_filter(
&self,
) -> Event<Arc<M>, M, OracleSetConfigFilter>
pub fn oracle_set_config_filter( &self, ) -> Event<Arc<M>, M, OracleSetConfigFilter>
Gets the contract’s OracleSetConfig
event
Sourcepub fn ownership_transferred_filter(
&self,
) -> Event<Arc<M>, M, OwnershipTransferredFilter>
pub fn ownership_transferred_filter( &self, ) -> Event<Arc<M>, M, OwnershipTransferredFilter>
Gets the contract’s OwnershipTransferred
event
Sourcepub fn remove_mr_enclave_filter(
&self,
) -> Event<Arc<M>, M, RemoveMrEnclaveFilter>
pub fn remove_mr_enclave_filter( &self, ) -> Event<Arc<M>, M, RemoveMrEnclaveFilter>
Gets the contract’s RemoveMrEnclave
event
Sourcepub fn request_event_filter(&self) -> Event<Arc<M>, M, RequestEventFilter>
pub fn request_event_filter(&self) -> Event<Arc<M>, M, RequestEventFilter>
Gets the contract’s RequestEvent
event
Sourcepub fn request_fund_filter(&self) -> Event<Arc<M>, M, RequestFundFilter>
pub fn request_fund_filter(&self) -> Event<Arc<M>, M, RequestFundFilter>
Gets the contract’s RequestFund
event
Sourcepub fn request_withdraw_filter(&self) -> Event<Arc<M>, M, RequestWithdrawFilter>
pub fn request_withdraw_filter(&self) -> Event<Arc<M>, M, RequestWithdrawFilter>
Gets the contract’s RequestWithdraw
event
Sourcepub fn routine_created_filter(&self) -> Event<Arc<M>, M, RoutineCreatedFilter>
pub fn routine_created_filter(&self) -> Event<Arc<M>, M, RoutineCreatedFilter>
Gets the contract’s RoutineCreated
event
Sourcepub fn routine_fund_filter(&self) -> Event<Arc<M>, M, RoutineFundFilter>
pub fn routine_fund_filter(&self) -> Event<Arc<M>, M, RoutineFundFilter>
Gets the contract’s RoutineFund
event
Sourcepub fn routine_withdraw_filter(&self) -> Event<Arc<M>, M, RoutineWithdrawFilter>
pub fn routine_withdraw_filter(&self) -> Event<Arc<M>, M, RoutineWithdrawFilter>
Gets the contract’s RoutineWithdraw
event
Sourcepub fn stake_added_filter(&self) -> Event<Arc<M>, M, StakeAddedFilter>
pub fn stake_added_filter(&self) -> Event<Arc<M>, M, StakeAddedFilter>
Gets the contract’s StakeAdded
event
Sourcepub fn stake_removed_filter(&self) -> Event<Arc<M>, M, StakeRemovedFilter>
pub fn stake_removed_filter(&self) -> Event<Arc<M>, M, StakeRemovedFilter>
Gets the contract’s StakeRemoved
event
Sourcepub fn transfer_filter(&self) -> Event<Arc<M>, M, TransferFilter>
pub fn transfer_filter(&self) -> Event<Arc<M>, M, TransferFilter>
Gets the contract’s Transfer
event
Sourcepub fn unstaked_filter(&self) -> Event<Arc<M>, M, UnstakedFilter>
pub fn unstaked_filter(&self) -> Event<Arc<M>, M, UnstakedFilter>
Gets the contract’s Unstaked
event
Sourcepub fn verify_failed_filter(&self) -> Event<Arc<M>, M, VerifyFailedFilter>
pub fn verify_failed_filter(&self) -> Event<Arc<M>, M, VerifyFailedFilter>
Gets the contract’s VerifyFailed
event
Sourcepub fn events(&self) -> Event<Arc<M>, M, SwitchboardEvents>
pub fn events(&self) -> Event<Arc<M>, M, SwitchboardEvents>
Returns an Event
builder for all the events of this contract.
Methods from Deref<Target = Contract<M>>§
Sourcepub fn client_ref(&self) -> &M
pub fn client_ref(&self) -> &M
Returns a reference to the contract’s client.
Sourcepub fn connect<N>(&self, client: Arc<N>) -> ContractInstance<Arc<N>, N>where
N: Middleware,
pub fn connect<N>(&self, client: Arc<N>) -> ContractInstance<Arc<N>, N>where
N: Middleware,
Returns a new contract instance using the provided client
Clones self
internally
Sourcepub fn connect_with<C, N>(&self, client: C) -> ContractInstance<C, N>where
C: Borrow<N>,
pub fn connect_with<C, N>(&self, client: C) -> ContractInstance<C, N>where
C: Borrow<N>,
Returns a new contract instance using the provided client
Clones self
internally
Sourcepub fn event_with_filter<D>(&self, filter: Filter) -> Event<B, M, D>
pub fn event_with_filter<D>(&self, filter: Filter) -> Event<B, M, D>
Returns an Event
builder with the provided filter.
Sourcepub fn event<D>(&self) -> Event<B, M, D>where
D: EthEvent,
pub fn event<D>(&self) -> Event<B, M, D>where
D: EthEvent,
Returns an Event
builder for the provided event.
Sourcepub fn event_for_name<D>(&self, name: &str) -> Result<Event<B, M, D>, Error>
pub fn event_for_name<D>(&self, name: &str) -> Result<Event<B, M, D>, Error>
Returns an Event
builder with the provided name.
Sourcepub fn method_hash<T, D>(
&self,
signature: [u8; 4],
args: T,
) -> Result<FunctionCall<B, M, D>, AbiError>where
T: Tokenize,
D: Detokenize,
pub fn method_hash<T, D>(
&self,
signature: [u8; 4],
args: T,
) -> Result<FunctionCall<B, M, D>, AbiError>where
T: Tokenize,
D: Detokenize,
Returns a transaction builder for the selected function signature. This should be preferred if there are overloaded functions in your smart contract
Sourcepub fn method<T, D>(
&self,
name: &str,
args: T,
) -> Result<FunctionCall<B, M, D>, AbiError>where
T: Tokenize,
D: Detokenize,
pub fn method<T, D>(
&self,
name: &str,
args: T,
) -> Result<FunctionCall<B, M, D>, AbiError>where
T: Tokenize,
D: Detokenize,
Returns a transaction builder for the provided function name. If there are
multiple functions with the same name due to overloading, consider using
the method_hash
method instead, since this will use the first match.
Sourcepub fn at<T>(&self, address: T) -> ContractInstance<B, M>
pub fn at<T>(&self, address: T) -> ContractInstance<B, M>
Returns a new contract instance at address
.
Clones self
internally
Methods from Deref<Target = BaseContract>§
Sourcepub fn encode<T>(&self, name: &str, args: T) -> Result<Bytes, AbiError>where
T: Tokenize,
pub fn encode<T>(&self, name: &str, args: T) -> Result<Bytes, AbiError>where
T: Tokenize,
Returns the ABI encoded data for the provided function and arguments
If the function exists multiple times and you want to use one of the overloaded
versions, consider using encode_with_selector
Sourcepub fn encode_with_selector<T>(
&self,
signature: [u8; 4],
args: T,
) -> Result<Bytes, AbiError>where
T: Tokenize,
pub fn encode_with_selector<T>(
&self,
signature: [u8; 4],
args: T,
) -> Result<Bytes, AbiError>where
T: Tokenize,
Returns the ABI encoded data for the provided function selector and arguments
Sourcepub fn decode<D, T>(&self, name: &str, bytes: T) -> Result<D, AbiError>
pub fn decode<D, T>(&self, name: &str, bytes: T) -> Result<D, AbiError>
Decodes the provided ABI encoded function arguments with the selected function name.
If the function exists multiple times and you want to use one of the overloaded
versions, consider using decode_with_selector
Sourcepub fn decode_raw<T>(
&self,
name: &str,
bytes: T,
) -> Result<Vec<Token>, AbiError>
pub fn decode_raw<T>( &self, name: &str, bytes: T, ) -> Result<Vec<Token>, AbiError>
Decodes the provided ABI encoded function arguments with the selected function name.
If the function exists multiple times and you want to use one of the overloaded
versions, consider using decode_with_selector
Returns a Token
vector, which lets you decode function arguments dynamically
without knowing the return type.
Sourcepub fn decode_output<D, T>(&self, name: &str, bytes: T) -> Result<D, AbiError>
pub fn decode_output<D, T>(&self, name: &str, bytes: T) -> Result<D, AbiError>
Decodes the provided ABI encoded function output with the selected function name.
If the function exists multiple times and you want to use one of the overloaded
versions, consider using decode_with_selector
Sourcepub fn decode_output_raw<T>(
&self,
name: &str,
bytes: T,
) -> Result<Vec<Token>, AbiError>
pub fn decode_output_raw<T>( &self, name: &str, bytes: T, ) -> Result<Vec<Token>, AbiError>
Decodes the provided ABI encoded function output with the selected function name.
If the function exists multiple times and you want to use one of the overloaded
versions, consider using decode_with_selector
Returns a Token
vector, which lets you decode function arguments dynamically
without knowing the return type.
Sourcepub fn decode_event<D>(
&self,
name: &str,
topics: Vec<H256>,
data: Bytes,
) -> Result<D, AbiError>where
D: Detokenize,
pub fn decode_event<D>(
&self,
name: &str,
topics: Vec<H256>,
data: Bytes,
) -> Result<D, AbiError>where
D: Detokenize,
Decodes for a given event name, given the log.topics
and
log.data
fields from the transaction receipt
Sourcepub fn decode_event_raw(
&self,
name: &str,
topics: Vec<H256>,
data: Bytes,
) -> Result<Vec<Token>, AbiError>
pub fn decode_event_raw( &self, name: &str, topics: Vec<H256>, data: Bytes, ) -> Result<Vec<Token>, AbiError>
Decodes for a given event name, given the log.topics
and
log.data
fields from the transaction receipt
Returns a Token
vector, which lets you decode function arguments dynamically
without knowing the return type.
Sourcepub fn decode_with_selector_raw<T>(
&self,
signature: [u8; 4],
bytes: T,
) -> Result<Vec<Token>, AbiError>
pub fn decode_with_selector_raw<T>( &self, signature: [u8; 4], bytes: T, ) -> Result<Vec<Token>, AbiError>
Decodes the provided ABI encoded bytes with the selected function selector
Returns a Token
vector, which lets you decode function arguments dynamically
without knowing the return type.
Sourcepub fn decode_with_selector<D, T>(
&self,
signature: [u8; 4],
bytes: T,
) -> Result<D, AbiError>
pub fn decode_with_selector<D, T>( &self, signature: [u8; 4], bytes: T, ) -> Result<D, AbiError>
Decodes the provided ABI encoded bytes with the selected function selector
Sourcepub fn decode_input_raw<T>(&self, bytes: T) -> Result<Vec<Token>, AbiError>
pub fn decode_input_raw<T>(&self, bytes: T) -> Result<Vec<Token>, AbiError>
Decodes the provided ABI encoded input bytes
Returns a Token
vector, which lets you decode function arguments dynamically
without knowing the return type.
Sourcepub fn decode_input<D, T>(&self, bytes: T) -> Result<D, AbiError>
pub fn decode_input<D, T>(&self, bytes: T) -> Result<D, AbiError>
Decodes the provided ABI encoded input bytes
Sourcepub fn decode_output_with_selector<D, T>(
&self,
signature: [u8; 4],
bytes: T,
) -> Result<D, AbiError>
pub fn decode_output_with_selector<D, T>( &self, signature: [u8; 4], bytes: T, ) -> Result<D, AbiError>
Decode the provided ABI encoded bytes as the output of the provided function selector
Sourcepub fn decode_output_with_selector_raw<T>(
&self,
signature: [u8; 4],
bytes: T,
) -> Result<Vec<Token>, AbiError>
pub fn decode_output_with_selector_raw<T>( &self, signature: [u8; 4], bytes: T, ) -> Result<Vec<Token>, AbiError>
Decodes the provided ABI encoded bytes with the selected function selector
Returns a Token
vector, which lets you decode function arguments dynamically
without knowing the return type.
Trait Implementations§
Source§impl<M> Clone for Switchboard<M>
impl<M> Clone for Switchboard<M>
Source§impl<M> Debug for Switchboard<M>
impl<M> Debug for Switchboard<M>
Source§impl<M> Deref for Switchboard<M>
impl<M> Deref for Switchboard<M>
Source§impl<M> DerefMut for Switchboard<M>
impl<M> DerefMut for Switchboard<M>
Source§impl<M: Middleware> From<ContractInstance<Arc<M>, M>> for Switchboard<M>
impl<M: Middleware> From<ContractInstance<Arc<M>, M>> for Switchboard<M>
Auto Trait Implementations§
impl<M> Freeze for Switchboard<M>
impl<M> RefUnwindSafe for Switchboard<M>where
M: RefUnwindSafe,
impl<M> Send for Switchboard<M>
impl<M> Sync for Switchboard<M>
impl<M> Unpin for Switchboard<M>where
M: Unpin,
impl<M> UnwindSafe for Switchboard<M>where
M: RefUnwindSafe + 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,
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> 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> 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.