script_bindings/structuredclone.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5/// A marker to ensure that the `[Serializable]` attribute is present on
6/// types that can be serialized. This trait should not be implemented manually.
7pub trait MarkedAsSerializableInIdl {
8 /// Used to define compile-time assertions about the type implementing this trait.
9 fn assert_serializable();
10}
11
12/// A marker to ensure that the `[Transferable]` attribute is present on
13/// types that can be transferred. This trait should not be implemented manually.
14pub trait MarkedAsTransferableInIdl {
15 /// Used to define compile-time assertions about the type implementing this trait.
16 fn assert_transferable();
17}