Crate fuchsia_runtime

source ·
Expand description

Type-safe bindings for Fuchsia-specific libc functionality.

This crate is a minimal extension on top of the fuchsia-zircon crate, which provides bindings to the Zircon kernel’s syscalls, but does not depend on functionality from libc.

Structs

Metadata information for a handle in a processargs message. Contains a handle type and an unsigned 16-bit value, whose meaning is handle type dependent.

Enums

Possible errors when converting a raw u32 to a HandleInfo with the TryFrom impl on HandleInfo.
Handle types as defined by the processargs protocol.

Functions

Duplicate the UTC Clock registered with the runtime.
Get a reference to the default Job provided to the process on startup.
Get a reference to the fuchsia.ldsvc.Loader channel.
Get a reference to the handle of the current process.
Swaps the current process-global UTC clock with new_clock, returning the old clock on success. If new_clock is a valid handle but does not have the ZX_RIGHT_READ right, an error is returned and new_clock is dropped.
Removes the handle of type HandleType from the list of handles received at startup.
Get a reference to the handle of the current thread.
Reads time from the UTC Clock registered with the runtime.
Get a reference to the handle of the current address space.