Enum wasmer_config::package::Bindings
source · pub enum Bindings {
Wit(WitBindings),
Wai(WaiBindings),
}
Expand description
The interface exposed by a Module
.
Variants§
Wit(WitBindings)
Wai(WaiBindings)
Implementations§
source§impl Bindings
impl Bindings
sourcepub fn referenced_files(
&self,
base_directory: &Path,
) -> Result<Vec<PathBuf>, ImportsError>
pub fn referenced_files( &self, base_directory: &Path, ) -> Result<Vec<PathBuf>, ImportsError>
Get all files that make up this interface.
For all binding types except WitBindings
, this will recursively
look for any files that are imported.
The caller can assume that any path that was referenced exists.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Bindings
impl<'de> Deserialize<'de> for Bindings
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
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 PartialEq for Bindings
impl PartialEq for Bindings
impl Eq for Bindings
impl StructuralPartialEq for Bindings
Auto Trait Implementations§
impl Freeze for Bindings
impl RefUnwindSafe for Bindings
impl Send for Bindings
impl Sync for Bindings
impl Unpin for Bindings
impl UnwindSafe for Bindings
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.