| // Copyright 2020 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| //! Type-safe bindings for Zircon profile objects. |
| |
| use crate::{AsHandleRef, Handle, HandleBased, HandleRef}; |
| |
| /// An object representing a Zircon |
| /// [profile](https://fuchsia.dev/fuchsia-src/concepts/objects/profile.md). |
| /// |
| /// As essentially a subtype of `Handle`, it can be freely interconverted. |
| #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] |
| #[repr(transparent)] |
| pub struct Profile(Handle); |
| impl_handle_based!(Profile); |
| |
| // TODO: This is just a stub to enable these handles to be provided over FIDL. We still need to |
| // implement the rest of the bindings here. |