Enum workflow_wasm::callback::CallbackError
source · pub enum CallbackError {
String(String),
JsValue(JsValue),
LockError(String),
ClosureNotInitialized,
}
Expand description
Errors produced by the callback
module
Variants§
String(String)
Custom error message
JsValue(JsValue)
Error contains a JsValue
LockError(String)
LockError message resulting from Mutex lock failure (std::sync::PoisonError
)
ClosureNotInitialized
Results from trying to access a closure value when the closure is not initialized.
Trait Implementations§
source§impl Debug for CallbackError
impl Debug for CallbackError
source§impl Display for CallbackError
impl Display for CallbackError
source§impl Error for CallbackError
impl Error for CallbackError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CallbackError> for JsValue
impl From<CallbackError> for JsValue
source§fn from(err: CallbackError) -> Self
fn from(err: CallbackError) -> Self
Converts to this type from the input type.