blob: dafc8129f383733f46be1f9c2c1261d7461ced23 [file] [log] [blame]
// Copyright 2018 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 interrupts.
use crate::{AsHandleRef, Handle, HandleBased, HandleRef};
/// An object representing a Zircon interrupt.
/// As essentially a subtype of `Handle`, it can be freely interconverted.
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct Interrupt(Handle);