Struct magenta::EventPair [] [src]

pub struct EventPair(_);

An object representing a Magenta event pair.

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

Methods

impl EventPair
[src]

Create an event pair, a pair of objects which can signal each other. Wraps the mx_eventpair_create syscall.

Trait Implementations

impl Debug for EventPair
[src]

Formats the value using the given formatter.

impl Eq for EventPair
[src]

impl PartialEq for EventPair
[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 EventPair
[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 EventPair
[src]

Performs the conversion.

impl Into<Handle> for EventPair
[src]

Performs the conversion.

impl HandleBased for EventPair
[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

impl Peered for EventPair
[src]

Set and clear userspace-accessible signal bits on the object's peer. Wraps the mx_object_signal_peer syscall. Read more

impl Cookied for EventPair
[src]

Get the cookie attached to this object, if any. Wraps the mx_object_get_cookie syscall. Read more

Attach an opaque cookie to this object with the given scope. The cookie may be read or changed in future only with the same scope. Wraps the mx_object_set_cookie syscall. Read more