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§
- Handle
Info - 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§
- Handle
Info Error - Possible errors when converting a raw u32 to a HandleInfo with the TryFrom
impl on HandleInfo. - Handle
Type - Handle types as defined by the processargs protocol.
Traits§
- Boot
Duration Ext - Special methods that are only valid for zx::BootDuration.
- UtcDuration
Ext - 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. Ifnew_clock
is a valid handle but does not have the ZX_RIGHT_READ right, an error is returned andnew_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.
- UtcClock
Details - Details of a UTC clock.
- UtcClock
Transform - A transformation for the UTC clock.
- UtcClock
Update - An update for the UTC clock.
- UtcDuration
- A duration in the UTC timeline.
- UtcInstant
- A UTC timestamp, measured in nanoseconds since Jan 1 1970.