[][src]Struct lucet_module::FunctionMetadata

pub struct FunctionMetadata<'a> {
    pub signature: UniqueSignatureIndex,
    pub name: Option<&'a str>,
}

Information about the corresponding function.

This is split from but closely related to a FunctionSpec. The distinction is largely for serialization/deserialization simplicity, as FunctionSpec contains fields that need cooperation from a loader, with manual layout and serialization as a result. FunctionMetadata is the remainder of fields that can be automatically serialized/deserialied and are small enough copying isn't a large concern.

Fields

signature: UniqueSignatureIndexname: Option<&'a str>

the "name" field is some human-friendly name, not necessarily the same as used to reach this function (through an export, for example), and may not even indicate that a function is exported at all. TODO: at some point when possible, this field ought to be set from the names section of a wasm module. At the moment that information is lost at parse time.

Trait Implementations

impl<'a> Clone for FunctionMetadata<'a>[src]

impl<'a> Debug for FunctionMetadata<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for FunctionMetadata<'a>[src]

impl<'a> Serialize for FunctionMetadata<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for FunctionMetadata<'a>

impl<'a> Send for FunctionMetadata<'a>

impl<'a> Sync for FunctionMetadata<'a>

impl<'a> Unpin for FunctionMetadata<'a>

impl<'a> UnwindSafe for FunctionMetadata<'a>

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.