Struct fuchsia_zircon::Port [] [src]

pub struct Port(_);

An object representing a Zircon port.

As essentially a subtype of Handle, it can be freely interconverted.

Methods

impl Port
[src]

[src]

Create an IO port, allowing IO packets to be read and enqueued.

Wraps the zx_port_create syscall.

[src]

Attempt to queue a user packet to the IO port.

Wraps the zx_port_queue syscall.

[src]

Wait for a packet to arrive on a (V2) port.

Wraps the zx_port_wait syscall.

[src]

Cancel pending wait_async calls for an object with the given key.

Wraps the zx_port_cancel syscall.

Trait Implementations

impl Debug for Port
[src]

[src]

Formats the value using the given formatter.

impl Eq for Port
[src]

impl PartialEq for Port
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl AsHandleRef for Port
[src]

[src]

Get a reference to the handle. One important use of such a reference is for object_wait_many. Read more

[src]

Interpret the reference as a raw handle (an integer type). Two distinct handles will have different raw values (so it can perhaps be used as a key in a data structure). Read more

[src]

Set and clear userspace-accessible signal bits on an object. Wraps the zx_object_signal syscall. Read more

[src]

Waits on a handle. Wraps the zx_object_wait_one syscall. Read more

[src]

Causes packet delivery on the given port when the object changes state and matches signals. zx_object_wait_async syscall. Read more

impl From<Handle> for Port
[src]

[src]

Performs the conversion.

impl HandleBased for Port
[src]

[src]

Duplicate a handle, possibly reducing the rights available. Wraps the zx_handle_duplicate syscall. Read more

[src]

Create a replacement for a handle, possibly reducing the rights available. This invalidates the original handle. Wraps the zx_handle_replace syscall. Read more

[src]

Converts the value into its inner handle. Read more

[src]

Converts the handle into it's raw representation. Read more

[src]

Creates an instance of this type from a handle. Read more

[src]

Creates an instance of another handle-based type from this value's inner handle.

[src]

Creates an instance of this type from the inner handle of another handle-based type. Read more