Enum common_types::receipt::TypedReceipt
source · [−]pub enum TypedReceipt {
Legacy(LegacyReceipt),
AccessList(LegacyReceipt),
EIP1559Transaction(LegacyReceipt),
}
Variants
Legacy(LegacyReceipt)
AccessList(LegacyReceipt)
EIP1559Transaction(LegacyReceipt)
Implementations
sourceimpl TypedReceipt
impl TypedReceipt
sourcepub fn new(type_id: TypedTxId, legacy_receipt: LegacyReceipt) -> Self
pub fn new(type_id: TypedTxId, legacy_receipt: LegacyReceipt) -> Self
Create a new receipt.
pub fn tx_type(&self) -> TypedTxId
pub fn receipt(&self) -> &LegacyReceipt
pub fn receipt_mut(&mut self) -> &mut LegacyReceipt
pub fn decode_rlp(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
pub fn decode_rlp_list(rlp: &Rlp<'_>) -> Result<Vec<Self>, DecoderError>
pub fn rlp_append(&self, s: &mut RlpStream)
pub fn rlp_append_list(s: &mut RlpStream, list: &[TypedReceipt])
pub fn encode(&self) -> Vec<u8>
Methods from Deref<Target = LegacyReceipt>
pub fn rlp_append(&self, s: &mut RlpStream)
Trait Implementations
sourceimpl Clone for TypedReceipt
impl Clone for TypedReceipt
sourcefn clone(&self) -> TypedReceipt
fn clone(&self) -> TypedReceipt
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TypedReceipt
impl Debug for TypedReceipt
sourceimpl Deref for TypedReceipt
impl Deref for TypedReceipt
type Target = LegacyReceipt
type Target = LegacyReceipt
The resulting type after dereferencing.
sourceimpl DerefMut for TypedReceipt
impl DerefMut for TypedReceipt
sourcefn deref_mut(&mut self) -> &mut LegacyReceipt
fn deref_mut(&mut self) -> &mut LegacyReceipt
Mutably dereferences the value.
sourceimpl MallocSizeOf for TypedReceipt
impl MallocSizeOf for TypedReceipt
sourcefn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
If T::size_of
is a constant, consider implementing constant_size
as well. Read more
sourcefn constant_size() -> Option<usize>
fn constant_size() -> Option<usize>
Used to optimize MallocSizeOf
implementation for collections
like Vec
and HashMap
to avoid iterating over them unnecessarily.
The Self: Sized
bound is for object safety. Read more
sourceimpl PartialEq<TypedReceipt> for TypedReceipt
impl PartialEq<TypedReceipt> for TypedReceipt
sourcefn eq(&self, other: &TypedReceipt) -> bool
fn eq(&self, other: &TypedReceipt) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TypedReceipt) -> bool
fn ne(&self, other: &TypedReceipt) -> bool
This method tests for !=
.
impl Eq for TypedReceipt
impl StructuralEq for TypedReceipt
impl StructuralPartialEq for TypedReceipt
Auto Trait Implementations
impl RefUnwindSafe for TypedReceipt
impl Send for TypedReceipt
impl Sync for TypedReceipt
impl Unpin for TypedReceipt
impl UnwindSafe for TypedReceipt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> MallocSizeOfExt for T where
T: MallocSizeOf,
impl<T> MallocSizeOfExt for T where
T: MallocSizeOf,
sourcefn malloc_size_of(&self) -> usize
fn malloc_size_of(&self) -> usize
Method to launch a heapsize measurement with a fresh state. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more