pub struct WasmInterface {
pub schema: String,
pub namespace: String,
pub module: String,
pub memory: Option<MemoryContract>,
pub exports: Vec<BindingFunction>,
pub capabilities: BTreeSet<String>,
pub host_calls: BTreeMap<String, HostCallContract>,
pub callbacks: BTreeMap<String, CallbackContract>,
pub handles: BTreeMap<String, HandleContract>,
pub resources: BTreeMap<String, HandleContract>,
}Fields§
§schema: String§namespace: String§module: String§memory: Option<MemoryContract>§exports: Vec<BindingFunction>§capabilities: BTreeSet<String>§host_calls: BTreeMap<String, HostCallContract>§callbacks: BTreeMap<String, CallbackContract>§handles: BTreeMap<String, HandleContract>§resources: BTreeMap<String, HandleContract>Implementations§
Source§impl WasmInterface
impl WasmInterface
pub fn verify_direct( &self, inspection: &DirectWasmInspection, ) -> Result<(), String>
Source§impl WasmInterface
impl WasmInterface
pub fn memory_plan(&self) -> Result<MemoryBindingPlan, String>
Source§impl WasmInterface
impl WasmInterface
pub fn parse(source: &str, origin: &str) -> Result<Self, String>
pub fn canonical_source(&self) -> String
pub fn digest(&self) -> String
pub fn hta_required(&self) -> bool
pub fn direct_exports(&self) -> Vec<(String, ExtensionExport)>
Trait Implementations§
Source§impl Clone for WasmInterface
impl Clone for WasmInterface
Source§fn clone(&self) -> WasmInterface
fn clone(&self) -> WasmInterface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WasmInterface
impl Debug for WasmInterface
impl Eq for WasmInterface
Source§impl PartialEq for WasmInterface
impl PartialEq for WasmInterface
impl StructuralPartialEq for WasmInterface
Auto Trait Implementations§
impl Freeze for WasmInterface
impl RefUnwindSafe for WasmInterface
impl Send for WasmInterface
impl Sync for WasmInterface
impl Unpin for WasmInterface
impl UnsafeUnpin for WasmInterface
impl UnwindSafe for WasmInterface
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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