Crate neotron_ffi

Source
Expand description

FFI-safe types used in the various Neotron APIs.

Note that all types in this file that are exported in the Api structure must be #[repr(C)] and ABI stable.

Structs§

FfiBuffer
A Rust u8 mutable slice, but compatible with FFI. Assume the lifetime is only valid until the callee returns to the caller.
FfiByteSlice
A Rust u8 slice, but compatible with FFI. Assume the lifetime is only valid until the callee returns to the caller.
FfiString
A Rust UTF-8 string, but compatible with FFI.

Enums§

FfiOption
All API functions which take/return optional values return this type.
FfiResult
All API functions which can fail return this type.