[go: up one dir, main page]

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

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

A method for converting an untyped Handle into a more specific reference.

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

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

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

A method for converting the object into a generic Handle.

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