Trait magenta::Cookied [] [src]

pub trait Cookied: HandleBased {
    fn get_cookie(&self, scope: &HandleRef) -> Result<u64, Status> { ... }
fn set_cookie(&self, scope: &HandleRef, cookie: u64) -> Result<(), Status> { ... } }

A trait implemented by all handles for objects which can have a cookie attached.

Provided Methods

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

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.

Implementors