pub struct SetCodeAuthorizationChainId { /* private fields */ }Expand description
EIP-7702 authorization chain ID.
Authorization chain IDs may be zero to allow a chain-agnostic
authorization. The outer transaction chain ID still uses ChainId and
remains nonzero.
Implementations§
Source§impl SetCodeAuthorizationChainId
impl SetCodeAuthorizationChainId
Sourcepub const fn from_be_bytes(bytes: [u8; 32]) -> Self
pub const fn from_be_bytes(bytes: [u8; 32]) -> Self
Creates an authorization chain ID from canonical 256-bit bytes.
Sourcepub const fn to_be_bytes(self) -> [u8; 32]
pub const fn to_be_bytes(self) -> [u8; 32]
Returns the canonical 256-bit big-endian bytes.
Sourcepub fn is_universal(self) -> bool
pub fn is_universal(self) -> bool
Returns true when the authorization is chain-agnostic.
Trait Implementations§
Source§impl Clone for SetCodeAuthorizationChainId
impl Clone for SetCodeAuthorizationChainId
Source§fn clone(&self) -> SetCodeAuthorizationChainId
fn clone(&self) -> SetCodeAuthorizationChainId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SetCodeAuthorizationChainId
Source§impl Debug for SetCodeAuthorizationChainId
impl Debug for SetCodeAuthorizationChainId
impl Eq for SetCodeAuthorizationChainId
Source§impl PartialEq for SetCodeAuthorizationChainId
impl PartialEq for SetCodeAuthorizationChainId
Source§fn eq(&self, other: &SetCodeAuthorizationChainId) -> bool
fn eq(&self, other: &SetCodeAuthorizationChainId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SetCodeAuthorizationChainId
Auto Trait Implementations§
impl Freeze for SetCodeAuthorizationChainId
impl RefUnwindSafe for SetCodeAuthorizationChainId
impl Send for SetCodeAuthorizationChainId
impl Sync for SetCodeAuthorizationChainId
impl Unpin for SetCodeAuthorizationChainId
impl UnsafeUnpin for SetCodeAuthorizationChainId
impl UnwindSafe for SetCodeAuthorizationChainId
Blanket Implementations§
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
Mutably borrows from an owned value. Read more