Skip to main content

Command

Enum Command 

Source
pub enum Command<'a> {
Show 16 variants Module { line: u32, name: Option<Cow<'a, str>>, file: WasmFile<'a>, }, ModuleDefinition { line: u32, name: Option<Cow<'a, str>>, file: WasmFile<'a>, }, ModuleInstance { line: u32, instance: Option<Cow<'a, str>>, module: Option<Cow<'a, str>>, }, AssertMalformed { line: u32, file: WasmFile<'a>, text: Cow<'a, str>, }, AssertInvalid { line: u32, file: WasmFile<'a>, text: Cow<'a, str>, }, Register { line: u32, name: Option<Cow<'a, str>>, as_: Cow<'a, str>, }, AssertUnlinkable { line: u32, file: WasmFile<'a>, text: Cow<'a, str>, }, AssertReturn { line: u32, action: Action<'a>, expected: Vec<Const<'a>>, }, Action { line: u32, action: Action<'a>, }, AssertTrap { line: u32, action: Action<'a>, text: Cow<'a, str>, }, AssertExhaustion { line: u32, action: Action<'a>, text: Cow<'a, str>, }, AssertException { line: u32, action: Action<'a>, }, AssertSuspension { line: u32, action: Action<'a>, text: Cow<'a, str>, }, AssertUninstantiable { line: u32, file: WasmFile<'a>, text: Cow<'a, str>, }, Thread { line: u32, name: Cow<'a, str>, shared_module: Option<Cow<'a, str>>, commands: Vec<Command<'a>>, }, Wait { line: u32, thread: Cow<'a, str>, },
}

Variants§

§

Module

Fields

§line: u32
§name: Option<Cow<'a, str>>
§file: WasmFile<'a>
§

ModuleDefinition

Fields

§line: u32
§name: Option<Cow<'a, str>>
§file: WasmFile<'a>
§

ModuleInstance

Fields

§line: u32
§instance: Option<Cow<'a, str>>
§module: Option<Cow<'a, str>>
§

AssertMalformed

Fields

§line: u32
§file: WasmFile<'a>
§text: Cow<'a, str>
§

AssertInvalid

Fields

§line: u32
§file: WasmFile<'a>
§text: Cow<'a, str>
§

Register

Fields

§line: u32
§name: Option<Cow<'a, str>>
§as_: Cow<'a, str>
§

AssertUnlinkable

Fields

§line: u32
§file: WasmFile<'a>
§text: Cow<'a, str>
§

AssertReturn

Fields

§line: u32
§action: Action<'a>
§expected: Vec<Const<'a>>
§

Action

Fields

§line: u32
§action: Action<'a>
§

AssertTrap

Fields

§line: u32
§action: Action<'a>
§text: Cow<'a, str>
§

AssertExhaustion

Fields

§line: u32
§action: Action<'a>
§text: Cow<'a, str>
§

AssertException

Fields

§line: u32
§action: Action<'a>
§

AssertSuspension

Fields

§line: u32
§action: Action<'a>
§text: Cow<'a, str>
§

AssertUninstantiable

Fields

§line: u32
§file: WasmFile<'a>
§text: Cow<'a, str>
§

Thread

Fields

§line: u32
§name: Cow<'a, str>
§shared_module: Option<Cow<'a, str>>
§commands: Vec<Command<'a>>
§

Wait

Fields

§line: u32
§thread: Cow<'a, str>

Implementations§

Source§

impl Command<'_>

Source

pub fn line(&self) -> u32

Trait Implementations§

Source§

impl<'de: 'a, 'a> Deserialize<'de> for Command<'a>

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'a> Serialize for Command<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Command<'a>

§

impl<'a> RefUnwindSafe for Command<'a>

§

impl<'a> Send for Command<'a>

§

impl<'a> Sync for Command<'a>

§

impl<'a> Unpin for Command<'a>

§

impl<'a> UnwindSafe for Command<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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