pub struct CallRecord {
pub export: String,
pub args: Vec<i32>,
pub result: Option<i32>,
pub status: CallStatus,
pub fuel: u64,
}Expand description
The executed-call half of a receipt: which export ran, with what integer args (the whole rustlite ABI is integer-only), and what came back.
Fields§
§export: StringExported function name.
args: Vec<i32>Arguments as passed (rustlite ABI: at most compose::MAX_CALL_ARGS).
result: Option<i32>The export’s own return value; None for a unit export.
status: CallStatusHow the call ended.
fuel: u64Reserved: fuel consumed. Rustlite emits no fuel checks today, so this is always 0 in v1 — the field exists so adding metering later does not bump the layout.
Trait Implementations§
Source§impl Clone for CallRecord
impl Clone for CallRecord
Source§fn clone(&self) -> CallRecord
fn clone(&self) -> CallRecord
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 moreSource§impl Debug for CallRecord
impl Debug for CallRecord
impl Eq for CallRecord
Source§impl PartialEq for CallRecord
impl PartialEq for CallRecord
impl StructuralPartialEq for CallRecord
Auto Trait Implementations§
impl Freeze for CallRecord
impl RefUnwindSafe for CallRecord
impl Send for CallRecord
impl Sync for CallRecord
impl Unpin for CallRecord
impl UnsafeUnpin for CallRecord
impl UnwindSafe for CallRecord
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