fidl/marker.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//! Marker types supporting FIDL bindings.
6
7/// A marker for source-breaking patterns.
8///
9/// Generated FIDL bindings use this type to explicitly mark Rust types' usage
10/// pattern as source-breaking. That is, even if the marked type provides ABI
11/// guarantees handling fields marked with [`SourceBreaking`] means _probably_
12/// opting out of source compatibility guarantees provided by the Rust FIDL
13/// bindings.
14#[derive(Clone, Default, Debug, PartialEq, Eq)]
15pub struct SourceBreaking;