pub struct InvocationReceipt<T> { /* private fields */ }Expand description
The result and usage after an invocation appends its records to your vector.
Implementations§
Source§impl<T> InvocationReceipt<T>
impl<T> InvocationReceipt<T>
pub fn value(&self) -> &T
pub const fn usage(&self) -> InvocationUsage
pub const fn fuel_used(&self) -> u64
pub const fn record_count(&self) -> u32
pub const fn record_bytes(&self) -> u64
pub fn into_parts(self) -> (T, InvocationUsage)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for InvocationReceipt<T>where
T: Freeze,
impl<T> RefUnwindSafe for InvocationReceipt<T>where
T: RefUnwindSafe,
impl<T> Send for InvocationReceipt<T>where
T: Send,
impl<T> Sync for InvocationReceipt<T>where
T: Sync,
impl<T> Unpin for InvocationReceipt<T>where
T: Unpin,
impl<T> UnsafeUnpin for InvocationReceipt<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for InvocationReceipt<T>where
T: 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