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