Struct wasmtime_wit_bindgen::TrappableError
source · pub struct TrappableError {
pub wit_name: String,
pub wit_owner: Option<String>,
pub rust_name: String,
}
Fields§
§wit_name: String
The name of the error in WIT that is being mapped.
wit_owner: Option<String>
The owner container of the error in WIT of the error that’s being mapped.
This is, for example, the name of the WIT interface or the WIT world
which owns the type. If this is set to None
then any error type with
wit_name
is remapped to rust_name
.
rust_name: String
The name, in Rust, of the error type to generate.
Trait Implementations§
source§impl Clone for TrappableError
impl Clone for TrappableError
source§fn clone(&self) -> TrappableError
fn clone(&self) -> TrappableError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more