Skip to main content

zx/
suspend_token.rs

1// Copyright 2026 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 Zircon Suspend Token objects.
6
7use crate::NullableHandle;
8
9/// An object representing a Zircon Suspend Token.
10///
11/// As essentially a subtype of `NullableHandle`, it can be freely interconverted.
12#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
13#[repr(transparent)]
14pub struct SuspendToken(NullableHandle);
15impl_handle_based!(SuspendToken);