Struct wasmer_compiler::EngineBuilder
source · pub struct EngineBuilder {
compiler_config: Option<Box<dyn CompilerConfig>>,
target: Option<Target>,
features: Option<Features>,
hash_algorithm: Option<HashAlgorithm>,
}
Expand description
The Builder contents of Engine
Fields§
§compiler_config: Option<Box<dyn CompilerConfig>>
The compiler
target: Option<Target>
The machine target
features: Option<Features>
The features to compile the Wasm module with
hash_algorithm: Option<HashAlgorithm>
The hashing algorithm
Implementations§
source§impl EngineBuilder
impl EngineBuilder
sourcepub fn set_target(self, target: Option<Target>) -> Self
pub fn set_target(self, target: Option<Target>) -> Self
Set the target
sourcepub fn set_features(self, features: Option<Features>) -> Self
pub fn set_features(self, features: Option<Features>) -> Self
Set the features
sourcepub fn set_hash_algorithm(self, hash_algorithm: Option<HashAlgorithm>) -> Self
pub fn set_hash_algorithm(self, hash_algorithm: Option<HashAlgorithm>) -> Self
Set the hashing algorithm
Trait Implementations§
source§impl From<EngineBuilder> for Engine
impl From<EngineBuilder> for Engine
source§fn from(engine_builder: EngineBuilder) -> Self
fn from(engine_builder: EngineBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EngineBuilder
impl !RefUnwindSafe for EngineBuilder
impl !Send for EngineBuilder
impl !Sync for EngineBuilder
impl Unpin for EngineBuilder
impl !UnwindSafe for EngineBuilder
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.