Skip to main content

starnix_sync/
lock_traits.rs

1// Copyright 2023 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/// A trait for types that represent a lock level in the lock dependency tracker.
6pub trait LockLevel {
7    /// The unique identifier for this lock level.
8    const LOCK_ID: usize;
9    /// The name of the lock level.
10    const NAME: &'static str;
11}