pub struct VMOutputs {
pub owned_outputs: Vec<StateAssignment>,
pub global_updates: Vec<GlobalState>,
pub metadata_updates: Vec<Metadata>,
pub next_seal: Option<SealRef>,
}Expand description
Output state from VM execution
Fields§
§owned_outputs: Vec<StateAssignment>New owned state assignments (who gets what)
global_updates: Vec<GlobalState>Updated global state values
metadata_updates: Vec<Metadata>Updated metadata
next_seal: Option<SealRef>The next seal to be consumed (derived from the transition)
Implementations§
Source§impl VMOutputs
impl VMOutputs
Sourcepub fn new(
owned_outputs: Vec<StateAssignment>,
global_updates: Vec<GlobalState>,
metadata_updates: Vec<Metadata>,
next_seal: Option<SealRef>,
) -> Self
pub fn new( owned_outputs: Vec<StateAssignment>, global_updates: Vec<GlobalState>, metadata_updates: Vec<Metadata>, next_seal: Option<SealRef>, ) -> Self
Create new VM outputs
Sourcepub fn total_by_type(&self) -> BTreeMap<StateTypeId, u64>
pub fn total_by_type(&self) -> BTreeMap<StateTypeId, u64>
Get total value by type ID (for fungible asset validation)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VMOutputs
impl<'de> Deserialize<'de> for VMOutputs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VMOutputs
impl StructuralPartialEq for VMOutputs
Auto Trait Implementations§
impl Freeze for VMOutputs
impl RefUnwindSafe for VMOutputs
impl Send for VMOutputs
impl Sync for VMOutputs
impl Unpin for VMOutputs
impl UnsafeUnpin for VMOutputs
impl UnwindSafe for VMOutputs
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