mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-27 23:51:33 +00:00
doc(runtime-c-api) Improve documentation of wasmer_result_t
.
This commit is contained in:
@ -107,10 +107,15 @@ pub mod table;
|
|||||||
pub mod trampoline;
|
pub mod trampoline;
|
||||||
pub mod value;
|
pub mod value;
|
||||||
|
|
||||||
|
/// The `wasmer_result_t` struct is a type that represents either a
|
||||||
|
/// success, or a failure.
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub enum wasmer_result_t {
|
pub enum wasmer_result_t {
|
||||||
|
/// Represents a success.
|
||||||
WASMER_OK = 1,
|
WASMER_OK = 1,
|
||||||
|
|
||||||
|
/// Represents a failure.
|
||||||
WASMER_ERROR = 2,
|
WASMER_ERROR = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user