pub struct ITIP20Instance<P, N = Ethereum> {
address: Address,
provider: P,
_network: PhantomData<N>,
}Expand description
A ITIP20 instance.
Contains type-safe methods for interacting with an on-chain instance of the
ITIP20 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> ITIP20Instance<P, N>
Instantiation and getters/setters.
impl<P: Provider<N>, N: Network> ITIP20Instance<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 ITIP20 contract instance.
See the wrapper’s documentation for more details.
Sourcepub fn set_address(&mut self, address: Address)
pub fn set_address(&mut self, address: Address)
Sets the address.
Source§impl<P: Clone, N> ITIP20Instance<&P, N>
impl<P: Clone, N> ITIP20Instance<&P, N>
Sourcepub fn with_cloned_provider(self) -> ITIP20Instance<P, N>
pub fn with_cloned_provider(self) -> ITIP20Instance<P, N>
Clones the provider and returns a new instance with the cloned provider.
Source§impl<P: Provider<N>, N: Network> ITIP20Instance<P, N>
Function calls.
impl<P: Provider<N>, N: Network> ITIP20Instance<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 name(&self) -> SolCallBuilder<&P, nameCall, N>
pub fn name(&self) -> SolCallBuilder<&P, nameCall, N>
Creates a new call builder for the [name] function.
Sourcepub fn symbol(&self) -> SolCallBuilder<&P, symbolCall, N>
pub fn symbol(&self) -> SolCallBuilder<&P, symbolCall, N>
Creates a new call builder for the [symbol] function.
Sourcepub fn decimals(&self) -> SolCallBuilder<&P, decimalsCall, N>
pub fn decimals(&self) -> SolCallBuilder<&P, decimalsCall, N>
Creates a new call builder for the [decimals] function.
Sourcepub fn totalSupply(&self) -> SolCallBuilder<&P, totalSupplyCall, N>
pub fn totalSupply(&self) -> SolCallBuilder<&P, totalSupplyCall, N>
Creates a new call builder for the [totalSupply] function.
Sourcepub fn quoteToken(&self) -> SolCallBuilder<&P, quoteTokenCall, N>
pub fn quoteToken(&self) -> SolCallBuilder<&P, quoteTokenCall, N>
Creates a new call builder for the [quoteToken] function.
Sourcepub fn nextQuoteToken(&self) -> SolCallBuilder<&P, nextQuoteTokenCall, N>
pub fn nextQuoteToken(&self) -> SolCallBuilder<&P, nextQuoteTokenCall, N>
Creates a new call builder for the [nextQuoteToken] function.
Sourcepub fn balanceOf(
&self,
account: Address,
) -> SolCallBuilder<&P, balanceOfCall, N>
pub fn balanceOf( &self, account: Address, ) -> SolCallBuilder<&P, balanceOfCall, N>
Creates a new call builder for the [balanceOf] function.
Sourcepub fn transfer(
&self,
to: Address,
amount: U256,
) -> SolCallBuilder<&P, transferCall, N>
pub fn transfer( &self, to: Address, amount: U256, ) -> SolCallBuilder<&P, transferCall, N>
Creates a new call builder for the [transfer] function.
Sourcepub fn approve(
&self,
spender: Address,
amount: U256,
) -> SolCallBuilder<&P, approveCall, N>
pub fn approve( &self, spender: Address, amount: U256, ) -> SolCallBuilder<&P, approveCall, N>
Creates a new call builder for the [approve] function.
Sourcepub fn allowance(
&self,
owner: Address,
spender: Address,
) -> SolCallBuilder<&P, allowanceCall, N>
pub fn allowance( &self, owner: Address, spender: Address, ) -> SolCallBuilder<&P, allowanceCall, N>
Creates a new call builder for the [allowance] function.
Sourcepub fn transferFrom(
&self,
from: Address,
to: Address,
amount: U256,
) -> SolCallBuilder<&P, transferFromCall, N>
pub fn transferFrom( &self, from: Address, to: Address, amount: U256, ) -> SolCallBuilder<&P, transferFromCall, N>
Creates a new call builder for the [transferFrom] function.
Sourcepub fn mint(&self, to: Address, amount: U256) -> SolCallBuilder<&P, mintCall, N>
pub fn mint(&self, to: Address, amount: U256) -> SolCallBuilder<&P, mintCall, N>
Creates a new call builder for the [mint] function.
Sourcepub fn burn(&self, amount: U256) -> SolCallBuilder<&P, burnCall, N>
pub fn burn(&self, amount: U256) -> SolCallBuilder<&P, burnCall, N>
Creates a new call builder for the [burn] function.
Sourcepub fn currency(&self) -> SolCallBuilder<&P, currencyCall, N>
pub fn currency(&self) -> SolCallBuilder<&P, currencyCall, N>
Creates a new call builder for the [currency] function.
Sourcepub fn supplyCap(&self) -> SolCallBuilder<&P, supplyCapCall, N>
pub fn supplyCap(&self) -> SolCallBuilder<&P, supplyCapCall, N>
Creates a new call builder for the [supplyCap] function.
Sourcepub fn paused(&self) -> SolCallBuilder<&P, pausedCall, N>
pub fn paused(&self) -> SolCallBuilder<&P, pausedCall, N>
Creates a new call builder for the [paused] function.
Sourcepub fn transferPolicyId(&self) -> SolCallBuilder<&P, transferPolicyIdCall, N>
pub fn transferPolicyId(&self) -> SolCallBuilder<&P, transferPolicyIdCall, N>
Creates a new call builder for the [transferPolicyId] function.
Sourcepub fn burnBlocked(
&self,
from: Address,
amount: U256,
) -> SolCallBuilder<&P, burnBlockedCall, N>
pub fn burnBlocked( &self, from: Address, amount: U256, ) -> SolCallBuilder<&P, burnBlockedCall, N>
Creates a new call builder for the [burnBlocked] function.
Sourcepub fn mintWithMemo(
&self,
to: Address,
amount: U256,
memo: FixedBytes<32>,
) -> SolCallBuilder<&P, mintWithMemoCall, N>
pub fn mintWithMemo( &self, to: Address, amount: U256, memo: FixedBytes<32>, ) -> SolCallBuilder<&P, mintWithMemoCall, N>
Creates a new call builder for the [mintWithMemo] function.
Sourcepub fn burnWithMemo(
&self,
amount: U256,
memo: FixedBytes<32>,
) -> SolCallBuilder<&P, burnWithMemoCall, N>
pub fn burnWithMemo( &self, amount: U256, memo: FixedBytes<32>, ) -> SolCallBuilder<&P, burnWithMemoCall, N>
Creates a new call builder for the [burnWithMemo] function.
Sourcepub fn transferWithMemo(
&self,
to: Address,
amount: U256,
memo: FixedBytes<32>,
) -> SolCallBuilder<&P, transferWithMemoCall, N>
pub fn transferWithMemo( &self, to: Address, amount: U256, memo: FixedBytes<32>, ) -> SolCallBuilder<&P, transferWithMemoCall, N>
Creates a new call builder for the [transferWithMemo] function.
Sourcepub fn transferFromWithMemo(
&self,
from: Address,
to: Address,
amount: U256,
memo: FixedBytes<32>,
) -> SolCallBuilder<&P, transferFromWithMemoCall, N>
pub fn transferFromWithMemo( &self, from: Address, to: Address, amount: U256, memo: FixedBytes<32>, ) -> SolCallBuilder<&P, transferFromWithMemoCall, N>
Creates a new call builder for the [transferFromWithMemo] function.
Sourcepub fn feeRecipient(&self) -> SolCallBuilder<&P, feeRecipientCall, N>
pub fn feeRecipient(&self) -> SolCallBuilder<&P, feeRecipientCall, N>
Creates a new call builder for the [feeRecipient] function.
Sourcepub fn setFeeRecipient(
&self,
newRecipient: Address,
) -> SolCallBuilder<&P, setFeeRecipientCall, N>
pub fn setFeeRecipient( &self, newRecipient: Address, ) -> SolCallBuilder<&P, setFeeRecipientCall, N>
Creates a new call builder for the [setFeeRecipient] function.
Sourcepub fn changeTransferPolicyId(
&self,
newPolicyId: u64,
) -> SolCallBuilder<&P, changeTransferPolicyIdCall, N>
pub fn changeTransferPolicyId( &self, newPolicyId: u64, ) -> SolCallBuilder<&P, changeTransferPolicyIdCall, N>
Creates a new call builder for the [changeTransferPolicyId] function.
Sourcepub fn setSupplyCap(
&self,
newSupplyCap: U256,
) -> SolCallBuilder<&P, setSupplyCapCall, N>
pub fn setSupplyCap( &self, newSupplyCap: U256, ) -> SolCallBuilder<&P, setSupplyCapCall, N>
Creates a new call builder for the [setSupplyCap] function.
Sourcepub fn pause(&self) -> SolCallBuilder<&P, pauseCall, N>
pub fn pause(&self) -> SolCallBuilder<&P, pauseCall, N>
Creates a new call builder for the [pause] function.
Sourcepub fn unpause(&self) -> SolCallBuilder<&P, unpauseCall, N>
pub fn unpause(&self) -> SolCallBuilder<&P, unpauseCall, N>
Creates a new call builder for the [unpause] function.
Sourcepub fn setNextQuoteToken(
&self,
newQuoteToken: Address,
) -> SolCallBuilder<&P, setNextQuoteTokenCall, N>
pub fn setNextQuoteToken( &self, newQuoteToken: Address, ) -> SolCallBuilder<&P, setNextQuoteTokenCall, N>
Creates a new call builder for the [setNextQuoteToken] function.
Sourcepub fn completeQuoteTokenUpdate(
&self,
) -> SolCallBuilder<&P, completeQuoteTokenUpdateCall, N>
pub fn completeQuoteTokenUpdate( &self, ) -> SolCallBuilder<&P, completeQuoteTokenUpdateCall, N>
Creates a new call builder for the [completeQuoteTokenUpdate] function.
Sourcepub fn PAUSE_ROLE(&self) -> SolCallBuilder<&P, PAUSE_ROLECall, N>
pub fn PAUSE_ROLE(&self) -> SolCallBuilder<&P, PAUSE_ROLECall, N>
Creates a new call builder for the [PAUSE_ROLE] function.
Sourcepub fn UNPAUSE_ROLE(&self) -> SolCallBuilder<&P, UNPAUSE_ROLECall, N>
pub fn UNPAUSE_ROLE(&self) -> SolCallBuilder<&P, UNPAUSE_ROLECall, N>
Creates a new call builder for the [UNPAUSE_ROLE] function.
Sourcepub fn ISSUER_ROLE(&self) -> SolCallBuilder<&P, ISSUER_ROLECall, N>
pub fn ISSUER_ROLE(&self) -> SolCallBuilder<&P, ISSUER_ROLECall, N>
Creates a new call builder for the [ISSUER_ROLE] function.
Sourcepub fn BURN_BLOCKED_ROLE(&self) -> SolCallBuilder<&P, BURN_BLOCKED_ROLECall, N>
pub fn BURN_BLOCKED_ROLE(&self) -> SolCallBuilder<&P, BURN_BLOCKED_ROLECall, N>
Creates a new call builder for the [BURN_BLOCKED_ROLE] function.
Sourcepub fn startReward(
&self,
amount: U256,
secs: u32,
) -> SolCallBuilder<&P, startRewardCall, N>
pub fn startReward( &self, amount: U256, secs: u32, ) -> SolCallBuilder<&P, startRewardCall, N>
Creates a new call builder for the [startReward] function.
Sourcepub fn setRewardRecipient(
&self,
recipient: Address,
) -> SolCallBuilder<&P, setRewardRecipientCall, N>
pub fn setRewardRecipient( &self, recipient: Address, ) -> SolCallBuilder<&P, setRewardRecipientCall, N>
Creates a new call builder for the [setRewardRecipient] function.
Sourcepub fn cancelReward(&self, id: u64) -> SolCallBuilder<&P, cancelRewardCall, N>
pub fn cancelReward(&self, id: u64) -> SolCallBuilder<&P, cancelRewardCall, N>
Creates a new call builder for the [cancelReward] function.
Sourcepub fn claimRewards(&self) -> SolCallBuilder<&P, claimRewardsCall, N>
pub fn claimRewards(&self) -> SolCallBuilder<&P, claimRewardsCall, N>
Creates a new call builder for the [claimRewards] function.
Sourcepub fn finalizeStreams(
&self,
timestamp: u64,
) -> SolCallBuilder<&P, finalizeStreamsCall, N>
pub fn finalizeStreams( &self, timestamp: u64, ) -> SolCallBuilder<&P, finalizeStreamsCall, N>
Creates a new call builder for the [finalizeStreams] function.
Sourcepub fn getStream(&self, id: u64) -> SolCallBuilder<&P, getStreamCall, N>
pub fn getStream(&self, id: u64) -> SolCallBuilder<&P, getStreamCall, N>
Creates a new call builder for the [getStream] function.
Sourcepub fn totalRewardPerSecond(
&self,
) -> SolCallBuilder<&P, totalRewardPerSecondCall, N>
pub fn totalRewardPerSecond( &self, ) -> SolCallBuilder<&P, totalRewardPerSecondCall, N>
Creates a new call builder for the [totalRewardPerSecond] function.
Sourcepub fn optedInSupply(&self) -> SolCallBuilder<&P, optedInSupplyCall, N>
pub fn optedInSupply(&self) -> SolCallBuilder<&P, optedInSupplyCall, N>
Creates a new call builder for the [optedInSupply] function.
Sourcepub fn nextStreamId(&self) -> SolCallBuilder<&P, nextStreamIdCall, N>
pub fn nextStreamId(&self) -> SolCallBuilder<&P, nextStreamIdCall, N>
Creates a new call builder for the [nextStreamId] function.
Sourcepub fn userRewardInfo(
&self,
account: Address,
) -> SolCallBuilder<&P, userRewardInfoCall, N>
pub fn userRewardInfo( &self, account: Address, ) -> SolCallBuilder<&P, userRewardInfoCall, N>
Creates a new call builder for the [userRewardInfo] function.
Source§impl<P: Provider<N>, N: Network> ITIP20Instance<P, N>
Event filters.
impl<P: Provider<N>, N: Network> ITIP20Instance<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 Transfer_filter(&self) -> Event<&P, Transfer, N>
pub fn Transfer_filter(&self) -> Event<&P, Transfer, N>
Creates a new event filter for the Transfer event.
Sourcepub fn Approval_filter(&self) -> Event<&P, Approval, N>
pub fn Approval_filter(&self) -> Event<&P, Approval, N>
Creates a new event filter for the Approval event.
Sourcepub fn Mint_filter(&self) -> Event<&P, Mint, N>
pub fn Mint_filter(&self) -> Event<&P, Mint, N>
Creates a new event filter for the Mint event.
Sourcepub fn Burn_filter(&self) -> Event<&P, Burn, N>
pub fn Burn_filter(&self) -> Event<&P, Burn, N>
Creates a new event filter for the Burn event.
Sourcepub fn BurnBlocked_filter(&self) -> Event<&P, BurnBlocked, N>
pub fn BurnBlocked_filter(&self) -> Event<&P, BurnBlocked, N>
Creates a new event filter for the BurnBlocked event.
Sourcepub fn TransferWithMemo_filter(&self) -> Event<&P, TransferWithMemo, N>
pub fn TransferWithMemo_filter(&self) -> Event<&P, TransferWithMemo, N>
Creates a new event filter for the TransferWithMemo event.
Sourcepub fn TransferPolicyUpdate_filter(&self) -> Event<&P, TransferPolicyUpdate, N>
pub fn TransferPolicyUpdate_filter(&self) -> Event<&P, TransferPolicyUpdate, N>
Creates a new event filter for the TransferPolicyUpdate event.
Sourcepub fn SupplyCapUpdate_filter(&self) -> Event<&P, SupplyCapUpdate, N>
pub fn SupplyCapUpdate_filter(&self) -> Event<&P, SupplyCapUpdate, N>
Creates a new event filter for the SupplyCapUpdate event.
Sourcepub fn PauseStateUpdate_filter(&self) -> Event<&P, PauseStateUpdate, N>
pub fn PauseStateUpdate_filter(&self) -> Event<&P, PauseStateUpdate, N>
Creates a new event filter for the PauseStateUpdate event.
Sourcepub fn NextQuoteTokenSet_filter(&self) -> Event<&P, NextQuoteTokenSet, N>
pub fn NextQuoteTokenSet_filter(&self) -> Event<&P, NextQuoteTokenSet, N>
Creates a new event filter for the NextQuoteTokenSet event.
Sourcepub fn QuoteTokenUpdate_filter(&self) -> Event<&P, QuoteTokenUpdate, N>
pub fn QuoteTokenUpdate_filter(&self) -> Event<&P, QuoteTokenUpdate, N>
Creates a new event filter for the QuoteTokenUpdate event.
Sourcepub fn RewardScheduled_filter(&self) -> Event<&P, RewardScheduled, N>
pub fn RewardScheduled_filter(&self) -> Event<&P, RewardScheduled, N>
Creates a new event filter for the RewardScheduled event.
Sourcepub fn RewardCanceled_filter(&self) -> Event<&P, RewardCanceled, N>
pub fn RewardCanceled_filter(&self) -> Event<&P, RewardCanceled, N>
Creates a new event filter for the RewardCanceled event.
Sourcepub fn RewardRecipientSet_filter(&self) -> Event<&P, RewardRecipientSet, N>
pub fn RewardRecipientSet_filter(&self) -> Event<&P, RewardRecipientSet, N>
Creates a new event filter for the RewardRecipientSet event.
Sourcepub fn FeeRecipientUpdated_filter(&self) -> Event<&P, FeeRecipientUpdated, N>
pub fn FeeRecipientUpdated_filter(&self) -> Event<&P, FeeRecipientUpdated, N>
Creates a new event filter for the FeeRecipientUpdated event.
Trait Implementations§
Source§impl<P: Clone, N: Clone> Clone for ITIP20Instance<P, N>
impl<P: Clone, N: Clone> Clone for ITIP20Instance<P, N>
Source§fn clone(&self) -> ITIP20Instance<P, N>
fn clone(&self) -> ITIP20Instance<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 ITIP20Instance<P, N>where
P: Freeze,
impl<P, N> RefUnwindSafe for ITIP20Instance<P, N>where
P: RefUnwindSafe,
N: RefUnwindSafe,
impl<P, N> Send for ITIP20Instance<P, N>
impl<P, N> Sync for ITIP20Instance<P, N>
impl<P, N> Unpin for ITIP20Instance<P, N>
impl<P, N> UnwindSafe for ITIP20Instance<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.