Expand description
Type-safe bindings for Zircon kernel syscalls.
Re-exports§
pub extern crate fuchsia_zircon_sys as sys;
Modules§
- prelude
- Prelude containing common utility traits.
Designed for use like
use fuchsia_zircon::prelude::*;
Structs§
- Channel
- An object representing a Zircon channel.
- Duration
- Event
- An object representing a Zircon event object.
- Event
Pair - An object representing a Zircon event pair.
- Fifo
- An object representing a Zircon fifo.
- Handle
- An object representing a Zircon handle.
- Handle
Ref - A borrowed reference to a
Handle
. - Job
- An object representing a Zircon job.
- Message
Buf - A buffer for receiving messages from a channel.
- Packet
- A packet sent through a port. This is a type-safe wrapper for zx_port_packet_t.
- Port
- An object representing a Zircon port.
- Process
- An object representing a Zircon process.
- Rights
- Rights associated with a handle.
- Signal
Packet - Contents of a signal packet (one generated by the kernel). This is a type-safe wrapper for zx_packet_signal_t.
- Signals
- Signals that can be waited upon.
- Socket
- An object representing a Zircon socket.
- Status
- Status type indicating the result of a Fuchsia syscall.
- Thread
- An object representing a Zircon thread.
- Time
- Timer
- An object representing a Zircon timer, such as the one returned by zx_timer_create.
- User
Packet - Contents of a user packet (one sent by
port_queue
). This is a type-safe wrapper for zx_packet_user_t. - Vmar
Flags - Flags to VMAR routines
- Vmo
- An object representing a Zircon virtual memory object.
- VmoOp
- VM Object opcodes
- Wait
Item - A “wait item” containing a handle reference and information about what signals
to wait on, and, on return from
object_wait_many
, which are pending.
Enums§
- ClockId
- An identifier to select a particular clock. See zx_time_get for more information about the possible values.
- Packet
Contents - The contents of a
Packet
. - Wait
Async Opts - Options for wait_async.
Traits§
- AsHandle
Ref - A trait to get a reference to the underlying handle of an object.
- Cookied
- A trait implemented by all handles for objects which can have a cookie attached.
- Duration
Num - Handle
Based - A trait implemented by all handle-based types.
- Peered
- A trait implemented by all handles for objects which have a peer.
Functions§
- cprng_
add_ entropy - Mix the given entropy into the kernel CPRNG.
- cprng_
draw - Draw random bytes from the kernel’s CPRNG to fill the given buffer. Returns the actual number of bytes drawn, which may sometimes be less than the size of the buffer provided.
- object_
wait_ many - 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.
- ok
- Convenience re-export of
Status::ok
. - size_
to_ u32_ sat - ticks_
get - Read the number of high-precision timer ticks since boot. These ticks may be processor cycles, high speed timer, profiling timer, etc. They are not guaranteed to continue advancing when the system is asleep.
- ticks_
per_ second - Return the number of high-precision timer ticks in a second.
- usize_
into_ u32