Skip to main content

ApiCall

Enum ApiCall 

Source
pub enum ApiCall {
Show 93 variants StoreNew { id: usize, config: Config, }, StoreDrop { id: usize, }, StoreGc { id: usize, }, ModuleNew { id: usize, wasm: Vec<u8>, }, ModuleDrop { id: usize, }, InstanceNew { id: usize, module: usize, store: usize, }, InstanceDrop { id: usize, }, CallExportedFunc { instance: usize, nth: usize, }, GlobalTypeNew { id: usize, ty: FuzzValType, mutable: bool, }, GlobalTypeDrop { id: usize, }, GlobalNew { id: usize, global_ty: usize, store: usize, }, GlobalGet { global: usize, }, GlobalSet { global: usize, }, GlobalTy { global: usize, }, GlobalDrop { id: usize, }, GetGlobalExport { id: usize, instance: usize, nth: usize, }, TableTypeNew { id: usize, nullable: bool, }, TableTypeDrop { id: usize, }, TableNew { id: usize, table_ty: usize, store: usize, }, TableGet { table: usize, idx: u64, }, TableSet { table: usize, idx: u64, }, TableGrow { table: usize, delta: u32, }, TableSize { table: usize, }, TableTy { table: usize, }, TableDrop { id: usize, }, GetTableExport { id: usize, instance: usize, nth: usize, }, MemoryTypeNew { id: usize, minimum: u32, maximum: Option<u32>, }, MemoryTypeDrop { id: usize, }, MemoryNew { id: usize, memory_ty: usize, store: usize, }, MemoryRead { memory: usize, offset: usize, len: usize, }, MemoryWrite { memory: usize, offset: usize, data: Vec<u8>, }, MemoryData { memory: usize, }, MemoryDataMut { memory: usize, }, MemoryGrow { memory: usize, delta: u32, }, MemoryDataSize { memory: usize, }, MemorySize { memory: usize, }, MemoryPageSize { memory: usize, }, MemoryPageSizeLog2 { memory: usize, }, MemoryTy { memory: usize, }, MemoryDrop { id: usize, }, GetMemoryExport { id: usize, instance: usize, nth: usize, }, FuncTypeNew { id: usize, params: Vec<FuzzValType>, results: Vec<FuzzValType>, }, FuncTypeDrop { id: usize, }, FuncNew { id: usize, func_ty: usize, store: usize, }, FuncTy { func: usize, }, FuncCall { func: usize, }, GetFuncExport { id: usize, instance: usize, nth: usize, }, FuncDrop { id: usize, }, TagTypeNew { id: usize, func_ty: usize, }, TagTypeDrop { id: usize, }, TagNew { id: usize, tag_ty: usize, store: usize, }, TagTy { tag: usize, }, TagEq { a: usize, b: usize, }, GetTagExport { id: usize, instance: usize, nth: usize, }, TagDrop { id: usize, }, ModuleImports { module: usize, }, ModuleExports { module: usize, }, ModuleGetExport { module: usize, name: String, }, ModuleName { module: usize, }, ModuleValidate { wasm: Vec<u8>, }, ModuleSerializeDeserialize { src_id: usize, dst_id: usize, }, TableCopy { dst_table: usize, dst_index: u64, src_table: usize, src_index: u64, len: u64, }, TableFill { table: usize, dst: u64, len: u64, }, StructTypeNew { id: usize, fields: Vec<(FuzzValType, bool)>, }, StructTypeDrop { id: usize, }, StructRefPreNew { id: usize, struct_ty: usize, store: usize, }, StructRefPreDrop { id: usize, }, StructRefNew { id: usize, pre: usize, }, StructRefTy { struct_ref: usize, }, StructRefField { struct_ref: usize, index: usize, }, StructRefSetField { struct_ref: usize, index: usize, }, StructRefDrop { id: usize, }, ArrayTypeNew { id: usize, elem_ty: FuzzValType, mutable: bool, }, ArrayTypeDrop { id: usize, }, ArrayRefPreNew { id: usize, array_ty: usize, store: usize, }, ArrayRefPreDrop { id: usize, }, ArrayRefNew { id: usize, pre: usize, len: u32, }, ArrayRefNewFixed { id: usize, pre: usize, count: u8, }, ArrayRefTy { array_ref: usize, }, ArrayRefLen { array_ref: usize, }, ArrayRefGet { array_ref: usize, index: u32, }, ArrayRefSet { array_ref: usize, index: u32, }, ArrayRefDrop { id: usize, }, ExnTypeNew { id: usize, fields: Vec<FuzzValType>, }, ExnTypeFromTagType { id: usize, tag_ty: usize, }, ExnTypeDrop { id: usize, }, ExnRefPreNew { id: usize, exn_ty: usize, store: usize, }, ExnRefPreDrop { id: usize, }, ExnRefNew { id: usize, pre: usize, tag: usize, }, ExnRefTy { exn_ref: usize, }, ExnRefTag { exn_ref: usize, }, ExnRefField { exn_ref: usize, index: usize, }, ExnRefDrop { id: usize, },
}
Expand description

A call to one of Wasmtime’s public APIs.

Variants§

§

StoreNew

Fields

§config: Config
§

StoreDrop

Fields

§

StoreGc

Fields

§

ModuleNew

Fields

§wasm: Vec<u8>
§

ModuleDrop

Fields

§

InstanceNew

Fields

§module: usize
§store: usize
§

InstanceDrop

Fields

§

CallExportedFunc

Fields

§instance: usize
§nth: usize
§

GlobalTypeNew

Fields

§mutable: bool
§

GlobalTypeDrop

Fields

§

GlobalNew

Fields

§global_ty: usize
§store: usize
§

GlobalGet

Fields

§global: usize
§

GlobalSet

Fields

§global: usize
§

GlobalTy

Fields

§global: usize
§

GlobalDrop

Fields

§

GetGlobalExport

Fields

§instance: usize
§nth: usize
§

TableTypeNew

Fields

§nullable: bool
§

TableTypeDrop

Fields

§

TableNew

Fields

§table_ty: usize
§store: usize
§

TableGet

Fields

§table: usize
§idx: u64
§

TableSet

Fields

§table: usize
§idx: u64
§

TableGrow

Fields

§table: usize
§delta: u32
§

TableSize

Fields

§table: usize
§

TableTy

Fields

§table: usize
§

TableDrop

Fields

§

GetTableExport

Fields

§instance: usize
§nth: usize
§

MemoryTypeNew

Fields

§minimum: u32
§maximum: Option<u32>
§

MemoryTypeDrop

Fields

§

MemoryNew

Fields

§memory_ty: usize
§store: usize
§

MemoryRead

Fields

§memory: usize
§offset: usize
§len: usize
§

MemoryWrite

Fields

§memory: usize
§offset: usize
§data: Vec<u8>
§

MemoryData

Fields

§memory: usize
§

MemoryDataMut

Fields

§memory: usize
§

MemoryGrow

Fields

§memory: usize
§delta: u32
§

MemoryDataSize

Fields

§memory: usize
§

MemorySize

Fields

§memory: usize
§

MemoryPageSize

Fields

§memory: usize
§

MemoryPageSizeLog2

Fields

§memory: usize
§

MemoryTy

Fields

§memory: usize
§

MemoryDrop

Fields

§

GetMemoryExport

Fields

§instance: usize
§nth: usize
§

FuncTypeNew

Fields

§results: Vec<FuzzValType>
§

FuncTypeDrop

Fields

§

FuncNew

Fields

§func_ty: usize
§store: usize
§

FuncTy

Fields

§func: usize
§

FuncCall

Fields

§func: usize
§

GetFuncExport

Fields

§instance: usize
§nth: usize
§

FuncDrop

Fields

§

TagTypeNew

Fields

§func_ty: usize
§

TagTypeDrop

Fields

§

TagNew

Fields

§tag_ty: usize
§store: usize
§

TagTy

Fields

§tag: usize
§

TagEq

Fields

§

GetTagExport

Fields

§instance: usize
§nth: usize
§

TagDrop

Fields

§

ModuleImports

Fields

§module: usize
§

ModuleExports

Fields

§module: usize
§

ModuleGetExport

Fields

§module: usize
§name: String
§

ModuleName

Fields

§module: usize
§

ModuleValidate

Fields

§wasm: Vec<u8>
§

ModuleSerializeDeserialize

Fields

§src_id: usize
§dst_id: usize
§

TableCopy

Fields

§dst_table: usize
§dst_index: u64
§src_table: usize
§src_index: u64
§len: u64
§

TableFill

Fields

§table: usize
§dst: u64
§len: u64
§

StructTypeNew

Fields

§fields: Vec<(FuzzValType, bool)>
§

StructTypeDrop

Fields

§

StructRefPreNew

Fields

§struct_ty: usize
§store: usize
§

StructRefPreDrop

Fields

§

StructRefNew

Fields

§pre: usize
§

StructRefTy

Fields

§struct_ref: usize
§

StructRefField

Fields

§struct_ref: usize
§index: usize
§

StructRefSetField

Fields

§struct_ref: usize
§index: usize
§

StructRefDrop

Fields

§

ArrayTypeNew

Fields

§elem_ty: FuzzValType
§mutable: bool
§

ArrayTypeDrop

Fields

§

ArrayRefPreNew

Fields

§array_ty: usize
§store: usize
§

ArrayRefPreDrop

Fields

§

ArrayRefNew

Fields

§pre: usize
§len: u32
§

ArrayRefNewFixed

Fields

§pre: usize
§count: u8
§

ArrayRefTy

Fields

§array_ref: usize
§

ArrayRefLen

Fields

§array_ref: usize
§

ArrayRefGet

Fields

§array_ref: usize
§index: u32
§

ArrayRefSet

Fields

§array_ref: usize
§index: u32
§

ArrayRefDrop

Fields

§

ExnTypeNew

Fields

§

ExnTypeFromTagType

Fields

§tag_ty: usize
§

ExnTypeDrop

Fields

§

ExnRefPreNew

Fields

§exn_ty: usize
§store: usize
§

ExnRefPreDrop

Fields

§

ExnRefNew

Fields

§pre: usize
§tag: usize
§

ExnRefTy

Fields

§exn_ref: usize
§

ExnRefTag

Fields

§exn_ref: usize
§

ExnRefField

Fields

§exn_ref: usize
§index: usize
§

ExnRefDrop

Fields

Trait Implementations§

Source§

impl<'arbitrary> Arbitrary<'arbitrary> for ApiCall

Source§

fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>

Generate an arbitrary value of Self from the given unstructured data. Read more
Source§

fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
Source§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
Source§

fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
Source§

impl Debug for ApiCall

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more