Enum common_types::transaction::TypedTxId
source · [−]#[repr(u8)]
pub enum TypedTxId {
EIP1559Transaction,
AccessList,
Legacy,
}
Variants
EIP1559Transaction
AccessList
Legacy
Implementations
sourceimpl TypedTxId
impl TypedTxId
pub fn from_u8_id(n: u8) -> Option<Self>
pub fn try_from_wire_byte(n: u8) -> Result<Self, ()>
pub fn from_U64_option_id(n: Option<U64>) -> Option<Self>
pub fn to_U64_option_id(self) -> Option<U64>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for TypedTxId
impl<'de> Deserialize<'de> for TypedTxId
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for TypedTxId
impl Eq for TypedTxId
impl StructuralEq for TypedTxId
impl StructuralPartialEq for TypedTxId
Auto Trait Implementations
impl RefUnwindSafe for TypedTxId
impl Send for TypedTxId
impl Sync for TypedTxId
impl Unpin for TypedTxId
impl UnwindSafe for TypedTxId
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> 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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more