pub struct Transaction<State> { /* private fields */ }Expand description
A transaction token whose validation state is tracked at compile time.
Implementations§
Source§impl Transaction<Decoded>
impl Transaction<Decoded>
Sourcepub const fn into_canonical(self) -> Transaction<Canonical>
pub const fn into_canonical(self) -> Transaction<Canonical>
Advances to canonical form after canonical checks pass.
Source§impl Transaction<Canonical>
impl Transaction<Canonical>
Sourcepub const fn into_fork_validated(self) -> Transaction<ForkValidated>
pub const fn into_fork_validated(self) -> Transaction<ForkValidated>
Advances after fork-specific validation passes.
Source§impl Transaction<ForkValidated>
impl Transaction<ForkValidated>
Sourcepub const fn into_sender_recovered(self) -> Transaction<SenderRecovered>
pub const fn into_sender_recovered(self) -> Transaction<SenderRecovered>
Advances after sender recovery succeeds.
Trait Implementations§
Source§impl<State: Clone> Clone for Transaction<State>
impl<State: Clone> Clone for Transaction<State>
Source§fn clone(&self) -> Transaction<State>
fn clone(&self) -> Transaction<State>
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<State: Copy> Copy for Transaction<State>
Source§impl<State: Debug> Debug for Transaction<State>
impl<State: Debug> Debug for Transaction<State>
impl<State: Eq> Eq for Transaction<State>
Source§impl<State: PartialEq> PartialEq for Transaction<State>
impl<State: PartialEq> PartialEq for Transaction<State>
Source§fn eq(&self, other: &Transaction<State>) -> bool
fn eq(&self, other: &Transaction<State>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<State: PartialEq> StructuralPartialEq for Transaction<State>
Auto Trait Implementations§
impl<State> Freeze for Transaction<State>
impl<State> RefUnwindSafe for Transaction<State>where
State: RefUnwindSafe,
impl<State> Send for Transaction<State>where
State: Send,
impl<State> Sync for Transaction<State>where
State: Sync,
impl<State> Unpin for Transaction<State>where
State: Unpin,
impl<State> UnsafeUnpin for Transaction<State>
impl<State> UnwindSafe for Transaction<State>where
State: UnwindSafe,
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