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§

HandleInfo
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.
UtcTimeline
Marker type for the UTC timeline.

Enums§

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

Traits§

BootDurationExt
Special methods that are only valid for zx::BootDuration.
UtcDurationExt
Special methods that are only valid for UtcDuration.

Functions§

dl_clone_loader_service
duplicate_utc_clock_handle
Duplicate the UTC Clock registered with the runtime.
job_default
Get a reference to the default Job provided to the process on startup.
loader_svc
Get a reference to the fuchsia.ldsvc.Loader channel.
process_self
Get a reference to the handle of the current process.
swap_utc_clock_handle
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.
take_startup_handle
Removes the handle of type HandleType from the list of handles received at startup.
thrd_get_zx_process
thread_self
Get a reference to the handle of the current thread.
utc_time
Reads time from the UTC Clock registered with the runtime.
vmar_root_self
Get a reference to the handle of the current address space.
zx_job_default
zx_process_self
zx_take_startup_handle
zx_thread_self
zx_utc_reference_get
zx_utc_reference_swap
zx_vmar_root_self

Type Aliases§

UtcClock
A clock that will return UTC timestamps.
UtcClockDetails
Details of a UTC clock.
UtcClockTransform
A transformation for the UTC clock.
UtcClockUpdate
An update for the UTC clock.
UtcDuration
A duration in the UTC timeline.
UtcInstant
A UTC timestamp, measured in nanoseconds since Jan 1 1970.