Struct magenta::Port [] [src]

pub struct Port(_);

An object representing a Magenta port.

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

Methods

impl Port
[src]

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

Wraps the mx_port_create syscall.

Attempt to queue a user packet to the IO port.

Wraps the mx_port_queue syscall.

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

Wraps the mx_port_wait syscall.

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

Wraps the mx_port_cancel syscall.

Trait Implementations

impl Debug for Port
[src]

Formats the value using the given formatter.

impl Eq for Port
[src]

impl PartialEq for Port
[src]

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

This method tests for !=.

impl AsHandleRef for Port
[src]

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

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

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

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

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

impl From<Handle> for Port
[src]

Performs the conversion.

impl Into<Handle> for Port
[src]

Performs the conversion.

impl HandleBased for Port
[src]

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

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