]> git.proxmox.com Git - rustc.git/blame - src/vendor/magenta/src/process.rs
New upstream version 1.22.1+dfsg1
[rustc.git] / src / vendor / magenta / src / process.rs
CommitLineData
ea8adc8c
XL
1// Copyright 2017 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5//! Type-safe bindings for Magenta process.
6
7use {HandleBase, Handle, HandleRef};
8
9/// An object representing a Magenta process.
10///
11/// As essentially a subtype of `Handle`, it can be freely interconverted.
12#[derive(Debug, Eq, PartialEq)]
13pub struct Process(Handle);
14
15impl HandleBase for Process {
16 fn get_ref(&self) -> HandleRef {
17 self.0.get_ref()
18 }
19
20 fn from_handle(handle: Handle) -> Self {
21 Process(handle)
22 }
23}