pub trait GuestErrorType {
// Required method
fn success() -> Self;
}
Expand description
A trait for types which are used to report errors. Each type used in the
first result position of an interface function is used, by convention, to
indicate whether the function was successful and subsequent results are valid,
or whether an error occurred. This trait allows wiggle to return the correct
value when the interface function’s idiomatic Rust method returns
Ok(<rest of return values>)
.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.