Crate zx

source ·
Expand description

Type-safe bindings for Zircon kernel syscalls.

Modules§

  • Prelude containing common utility traits. Designed for use like use zx::prelude::*;

Macros§

Structs§

Enums§

Traits§

  • A trait to get a reference to the underlying handle of an object.
  • A trait implemented by all handle-based types.
  • A trait implemented by all handles for objects which have a peer.
  • A marker trait for times and durations to prevent accidental comparison between different units.
  • A marker trait for times to prevent accidental comparison between different timelines.

Functions§

  • Mix the given entropy into the kernel CPRNG.
  • Draw random bytes from the kernel’s CPRNG to fill buffer. This function always fills the buffer.
  • Draw random bytes from the kernel’s CPRNG to fill the provided buffer. This function always fills the buffer.
  • Draw random bytes from the kernel’s CPRNG to fill buffer. This function always fills the buffer.
  • Wait on multiple handles. The success return value is a bool indicating whether one or more of the provided handle references was closed during the wait.
  • Convenience re-export of Status::ok.
  • Get number of logical processors on the system.
  • Retrieve the system memory page size in bytes.
  • Get the amount of physical memory on the system, in bytes.
  • Return a version string describing the system (kernel). This string never changes.

Type Aliases§

  • A timestamp from the boot clock. Advances while the system is suspended.
  • A timestamp from system ticks on the boot timeline. Advances while the system is suspended.
  • A timer that measures its deadlines against the boot clock.
  • A duration between two system ticks timestamps.
  • A timestamp from the monontonic clock. Does not advance while the system is suspended.
  • A timestamp from system ticks on the monotonic timeline. Does not advance while the system is suspended.
  • A timer that measures its deadlines against the monotonic clock.
  • A timestamp from a user-defined clock with arbitrary behavior.
  • A timestamp from system ticks. Has an arbitrary unit that can be measured with Ticks::per_second().