Struct holochain_wasmer_common::result::WasmError
source · pub struct WasmError {
pub file: String,
pub line: u32,
pub error: WasmErrorInner,
}
Expand description
Wraps a WasmErrorInner with a file and line number.
The easiest way to generate this is with the wasm_error!
macro that will
insert the correct file/line and can create strings by forwarding args to
the format!
macro.
Fields§
§file: String
§line: u32
§error: WasmErrorInner
Trait Implementations§
source§impl<'de> Deserialize<'de> for WasmError
impl<'de> Deserialize<'de> for WasmError
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 Error for WasmError
impl Error for WasmError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Infallible> for WasmError
impl From<Infallible> for WasmError
Allows ? in a TryFrom context downstream.
source§fn from(_: Infallible) -> WasmError
fn from(_: Infallible) -> WasmError
Converts to this type from the input type.
source§impl Ord for WasmError
impl Ord for WasmError
source§impl PartialOrd for WasmError
impl PartialOrd for WasmError
impl Eq for WasmError
impl StructuralPartialEq for WasmError
Auto Trait Implementations§
impl Freeze for WasmError
impl RefUnwindSafe for WasmError
impl Send for WasmError
impl Sync for WasmError
impl Unpin for WasmError
impl UnwindSafe for WasmError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.