Trait wiggle::GuestErrorType

source ·
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 occured. 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§

source

fn success() -> Self

Object Safety§

This trait is not object safe.

Implementors§