pub struct EscrowFinishContext { /* private fields */ }Expand description
Entry-point context for a Smart Escrow finish operation.
Provides access to the current EscrowFinish transaction via
[SmartFeatureContext::tx] and to the escrow ledger object via
escrow. Escrow-unique host functions
(e.g., update_data) are exposed as
safe inherent methods; no unsafe code is needed in user crates.
The #[smart_escrow] macro constructs this via Default::default() and
passes it to the user function.
Implementations§
Source§impl EscrowFinishContext
impl EscrowFinishContext
Sourcepub fn escrow(&self) -> &CurrentEscrow
pub fn escrow(&self) -> &CurrentEscrow
Returns a reference to the current escrow ledger object.
Sourcepub fn update_data(&self, data: &[u8]) -> Result<()>
pub fn update_data(&self, data: &[u8]) -> Result<()>
[host fn] Write new data to the Smart Escrow object.
Trait Implementations§
Source§impl Default for EscrowFinishContext
impl Default for EscrowFinishContext
Source§impl SmartFeatureContext for EscrowFinishContext
impl SmartFeatureContext for EscrowFinishContext
Auto Trait Implementations§
impl Freeze for EscrowFinishContext
impl RefUnwindSafe for EscrowFinishContext
impl Send for EscrowFinishContext
impl Sync for EscrowFinishContext
impl Unpin for EscrowFinishContext
impl UnsafeUnpin for EscrowFinishContext
impl UnwindSafe for EscrowFinishContext
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