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 fn try_into_canonical(
self,
proof: Result<CanonicalValidationProof, ProtocolError>,
) -> Result<Transaction<Canonical>, StateTransitionError<Decoded>>
pub fn try_into_canonical( self, proof: Result<CanonicalValidationProof, ProtocolError>, ) -> Result<Transaction<Canonical>, StateTransitionError<Decoded>>
Advances to canonical form after canonical checks pass.
Source§impl Transaction<Canonical>
impl Transaction<Canonical>
Sourcepub fn try_into_fork_validated(
self,
proof: Result<ForkValidationProof, ProtocolError>,
) -> Result<Transaction<ForkValidated>, StateTransitionError<Canonical>>
pub fn try_into_fork_validated( self, proof: Result<ForkValidationProof, ProtocolError>, ) -> Result<Transaction<ForkValidated>, StateTransitionError<Canonical>>
Advances after fork-specific validation passes.
Source§impl Transaction<ForkValidated>
impl Transaction<ForkValidated>
Sourcepub fn try_into_sender_recovered(
self,
proof: Result<SenderRecoveryProof, ProtocolError>,
) -> Result<Transaction<SenderRecovered>, StateTransitionError<ForkValidated>>
pub fn try_into_sender_recovered( self, proof: Result<SenderRecoveryProof, ProtocolError>, ) -> Result<Transaction<SenderRecovered>, StateTransitionError<ForkValidated>>
Advances after sender recovery succeeds.
Trait Implementations§
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