Trait CallManyList
pub trait CallManyList: Sized {
// Required methods
fn deserialize_limited<'de, D>(
deserializer: D,
max_calls: usize,
) -> Result<Result<Self, CallManyLimitExceeded>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>;
fn call_count(&self) -> usize;
}eth only.Expand description
A list of calls, as taken by eth_callMany, debug_traceCallMany or trace_callMany, that
can be deserialized with a limit on its number of calls.
Required Methods§
fn deserialize_limited<'de, D>(
deserializer: D,
max_calls: usize,
) -> Result<Result<Self, CallManyLimitExceeded>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize_limited<'de, D>(
deserializer: D,
max_calls: usize,
) -> Result<Result<Self, CallManyLimitExceeded>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserializes the list, decoding at most max_calls calls.
The first call past the limit and everything after it are consumed without being
deserialized, and the result is CallManyLimitExceeded. Calls are counted like
Self::call_count.
fn call_count(&self) -> usize
fn call_count(&self) -> usize
Returns the number of calls in the list, as counted against the limit.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
§impl<TxReq, T> CallManyList for Vec<(TxReq, T)>where
TxReq: for<'de> Deserialize<'de>,
T: for<'de> Deserialize<'de>,
The calls of trace_callMany, each a transaction request with its trace types.
impl<TxReq, T> CallManyList for Vec<(TxReq, T)>where
TxReq: for<'de> Deserialize<'de>,
T: for<'de> Deserialize<'de>,
The calls of trace_callMany, each a transaction request with its trace types.
fn deserialize_limited<'de, D>(
deserializer: D,
max_calls: usize,
) -> Result<Result<Vec<(TxReq, T)>, CallManyLimitExceeded>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn call_count(&self) -> usize
§impl<TxReq> CallManyList for Vec<Bundle<TxReq>>where
TxReq: for<'de> Deserialize<'de>,
The bundles of eth_callMany and debug_traceCallMany.
impl<TxReq> CallManyList for Vec<Bundle<TxReq>>where
TxReq: for<'de> Deserialize<'de>,
The bundles of eth_callMany and debug_traceCallMany.
An empty bundle counts as one call, so the limit also bounds the number of bundles.