pub struct Transaction { /* private fields */ }Expand description
Stable erased present relationship recorded in one Scheme.
Reusable across submissions. Extract each submission’s product with Self::claim.
Implementations§
Source§impl Transaction
impl Transaction
Sourcepub fn binding_id(&self) -> u32
pub fn binding_id(&self) -> u32
Scheme-unique present binding id for this transaction.
Sourcepub fn generation(&self) -> u64
pub fn generation(&self) -> u64
Current backing generation for this transaction’s exchange.
Resize and backing recreation advance this without changing binding identity.
Sourcepub fn claim(&self, submission: &mut Submission) -> Result<Claim, GoldyError>
pub fn claim(&self, submission: &mut Submission) -> Result<Claim, GoldyError>
Remove this transaction’s claim from a successful submission.
Acquisition already happened inside Scheme::submit.
Fails when the exchange generation no longer matches the published claim
(for example after resize between submit and claim).
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 moreAuto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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