1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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.