Crate neotron_api

Source
Expand description

The Neotron API

Defines the API supplied to applications that run on Neotron OS. This API is provided in the form of a rust struct Api, where every field is a function pointer.

Modules§

dir
Directory related types
file
File related types
path
Path related types.

Structs§

Api
The syscalls provided by the Neotron OS to a Neotron Application.
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§

Error
Describes how something has failed

Constants§

MAX_FILENAME_LEN
Maximum length of a filename (with no directory components), including the extension.

Type Aliases§

AppStartFn
The type of the entry function for an application
Result
The result type for any SDK API function.