Struct magenta::Event [] [src]

pub struct Event(_);

An object representing a Magenta event object.

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

Methods

impl Event
[src]

Create an event object, an object which is signalable but nothing else. Wraps the mx_event_create syscall.

Trait Implementations

impl Debug for Event
[src]

Formats the value using the given formatter.

impl Eq for Event
[src]

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

Performs the conversion.

impl Into<Handle> for Event
[src]

Performs the conversion.

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