Struct Receipts70
pub struct Receipts70<T = EthereumReceipt> {
pub last_block_incomplete: bool,
pub receipts: Vec<Vec<T>>,
}Expand description
Eth/70 Receipts response payload.
This is used in conjunction with crate::message::RequestPair to encode the full wire
message [request-id, lastBlockIncomplete, [[receipt₁, receipt₂], ...]].
Fields§
§last_block_incomplete: boolWhether the receipts list for the last block is incomplete.
receipts: Vec<Vec<T>>Receipts grouped by block.
Implementations§
§impl<T> Receipts70<T>where
T: TxReceipt,
impl<T> Receipts70<T>where
T: TxReceipt,
pub fn into_with_bloom(self) -> Receipts<T>
pub fn into_with_bloom(self) -> Receipts<T>
Encodes all receipts with the bloom filter.
Just like eth/69, eth/70 does not transmit bloom filters over the wire.
When higher layers still expect the older bloom-bearing Receipts
type, this helper converts the eth/70 payload into that shape by
recomputing the bloom locally from the contained receipts.
Note: This is an expensive operation that recalculates the bloom for every receipt.
Trait Implementations§
§impl<'arbitrary, T> Arbitrary<'arbitrary> for Receipts70<T>where
T: Arbitrary<'arbitrary>,
impl<'arbitrary, T> Arbitrary<'arbitrary> for Receipts70<T>where
T: Arbitrary<'arbitrary>,
§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Receipts70<T>, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Receipts70<T>, Error>
Self from the given unstructured data. Read more§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>,
) -> Result<Receipts70<T>, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary>, ) -> Result<Receipts70<T>, Error>
Self from the entirety of the given
unstructured data. Read more§impl<T> Clone for Receipts70<T>where
T: Clone,
impl<T> Clone for Receipts70<T>where
T: Clone,
§fn clone(&self) -> Receipts70<T>
fn clone(&self) -> Receipts70<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl<T> Debug for Receipts70<T>where
T: Debug,
impl<T> Debug for Receipts70<T>where
T: Debug,
§impl<T> Decodable for Receipts70<T>where
T: Decodable,
impl<T> Decodable for Receipts70<T>where
T: Decodable,
§fn decode(buf: &mut &[u8]) -> Result<Receipts70<T>, Error>
fn decode(buf: &mut &[u8]) -> Result<Receipts70<T>, Error>
buf must be advanced past
the decoded object.§impl<'de, T> Deserialize<'de> for Receipts70<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Receipts70<T>where
T: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Receipts70<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Receipts70<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl<T> Encodable for Receipts70<T>where
T: Encodable,
impl<T> Encodable for Receipts70<T>where
T: Encodable,
impl<T> Eq for Receipts70<T>where
T: Eq,
§impl<T> From<Receipts70<T>> for Receipts<T>where
T: TxReceipt,
impl<T> From<Receipts70<T>> for Receipts<T>where
T: TxReceipt,
§fn from(receipts: Receipts70<T>) -> Receipts<T>
fn from(receipts: Receipts70<T>) -> Receipts<T>
§impl<T> PartialEq for Receipts70<T>where
T: PartialEq,
impl<T> PartialEq for Receipts70<T>where
T: PartialEq,
§impl<T> Serialize for Receipts70<T>where
T: Serialize,
impl<T> Serialize for Receipts70<T>where
T: Serialize,
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl<T> StructuralPartialEq for Receipts70<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for Receipts70<T>
impl<T> RefUnwindSafe for Receipts70<T>
impl<T> Send for Receipts70<T>
impl<T> Sync for Receipts70<T>
impl<T> Unpin for Receipts70<T>
impl<T> UnsafeUnpin for Receipts70<T>
impl<T> UnwindSafe for Receipts70<T>
Blanket Implementations§
impl<A> ArbInterop for A
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreimpl<T> MaybeSerde for Twhere
T: Serialize + for<'de> Deserialize<'de>,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§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> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes