[][src]Struct wasmer_runtime_core::state::InstanceImage

pub struct InstanceImage {
    pub memory: Option<Vec<u8>>,
    pub globals: Vec<u128>,
    pub execution_state: ExecutionStateImage,
}

Represents an image of an Instance including its memory, globals, and execution state.

Fields

memory: Option<Vec<u8>>

Memory for this InstanceImage

globals: Vec<u128>

Stored globals for this InstanceImage

execution_state: ExecutionStateImage

ExecutionStateImage for this InstanceImage

Methods

impl InstanceImage[src]

pub fn from_bytes(input: &[u8]) -> Option<InstanceImage>[src]

Converts a slice of bytes into an Option<InstanceImage>

pub fn to_bytes(&self) -> Vec<u8>[src]

Converts self into a vector of bytes.

Trait Implementations

impl Clone for InstanceImage[src]

impl Debug for InstanceImage[src]

impl<'de> Deserialize<'de> for InstanceImage[src]

impl Serialize for InstanceImage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.