Type Alias wasmer::store::OnCalledHandler
source · pub type OnCalledHandler = Box<dyn FnOnce(StoreMut<'_>) -> Result<OnCalledAction, Box<dyn Error + Send + Sync>>>;
Expand description
Call handler for a store.
Aliased Type§
struct OnCalledHandler(Unique<dyn FnOnce(StoreMut<'_>) -> Result<OnCalledAction, Box<dyn Error + Sync + Send, Global>>>, Global);
Fields§
§0: Unique<dyn FnOnce(StoreMut<'_>) -> Result<OnCalledAction, Box<dyn Error + Sync + Send, Global>>>
§1: Global
Trait Implementations§
1.8.0 · source§impl<T> Error for Box<T, Global>where
T: Error,
impl<T> Error for Box<T, Global>where T: Error,
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting