pub struct CompositeExecutor { /* private fields */ }Expand description
An executor that delegates instance creation to several other executors.
The executors are tried one after the other. If they return known whitelisted errors, we fall back to the next executor on the list.
Implementations§
Trait Implementations§
Source§impl Debug for CompositeExecutor
impl Debug for CompositeExecutor
Source§impl Executor for CompositeExecutor
impl Executor for CompositeExecutor
Source§fn new_instance(
&self,
wasm_bytes: &[u8],
compilation_options: &CompilationOptions,
) -> Result<Box<dyn Instance>, ExecutorError>
fn new_instance( &self, wasm_bytes: &[u8], compilation_options: &CompilationOptions, ) -> Result<Box<dyn Instance>, ExecutorError>
Creates a new VM executor instance.
Source§fn new_instance_from_cache(
&self,
_cache_bytes: &[u8],
_compilation_options: &CompilationOptions,
) -> Result<Box<dyn Instance>, ExecutorError>
fn new_instance_from_cache( &self, _cache_bytes: &[u8], _compilation_options: &CompilationOptions, ) -> Result<Box<dyn Instance>, ExecutorError>
Creates a new VM executor instance from cache.
Auto Trait Implementations§
impl Freeze for CompositeExecutor
impl !RefUnwindSafe for CompositeExecutor
impl Send for CompositeExecutor
impl Sync for CompositeExecutor
impl Unpin for CompositeExecutor
impl UnsafeUnpin for CompositeExecutor
impl !UnwindSafe for CompositeExecutor
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> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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