pub struct Receipts70<T = Receipt> {
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§
Source§impl<T: TxReceipt> Receipts70<T>
impl<T: TxReceipt> Receipts70<T>
Sourcepub 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§
Source§impl<'arbitrary, T: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for Receipts70<T>
Available on crate features arbitrary only.
impl<'arbitrary, T: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for Receipts70<T>
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§impl<T: Clone> Clone for Receipts70<T>
impl<T: Clone> Clone for Receipts70<T>
Source§impl<T: Debug> Debug for Receipts70<T>
impl<T: Debug> Debug for Receipts70<T>
Source§impl<T> Decodable for Receipts70<T>where
T: Decodable,
impl<T> Decodable for Receipts70<T>where
T: Decodable,
Source§impl<'de, T> Deserialize<'de> for Receipts70<T>where
T: Deserialize<'de>,
Available on crate feature serde only.
impl<'de, T> Deserialize<'de> for Receipts70<T>where
T: Deserialize<'de>,
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<T> Encodable for Receipts70<T>where
T: Encodable,
impl<T> Encodable for Receipts70<T>where
T: Encodable,
impl<T: Eq> Eq for Receipts70<T>
Source§impl<T: TxReceipt> From<Receipts70<T>> for Receipts<T>
impl<T: TxReceipt> From<Receipts70<T>> for Receipts<T>
Source§fn from(receipts: Receipts70<T>) -> Self
fn from(receipts: Receipts70<T>) -> Self
Source§impl<T: PartialEq> PartialEq for Receipts70<T>
impl<T: PartialEq> PartialEq for Receipts70<T>
Source§impl<T> Serialize for Receipts70<T>where
T: Serialize,
Available on crate feature serde only.
impl<T> Serialize for Receipts70<T>where
T: Serialize,
serde only.impl<T: PartialEq> StructuralPartialEq for Receipts70<T>
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