diff options
Diffstat (limited to 'src/node_id.rs')
-rw-r--r-- | src/node_id.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/node_id.rs b/src/node_id.rs new file mode 100644 index 0000000..5d0663a --- /dev/null +++ b/src/node_id.rs @@ -0,0 +1,10 @@ +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. +// + +/// A unique identifier for a `Node` +/// +/// The `NodeId` should be cheap to clone (for example a UUID or some form of a hash value). +pub trait NodeId: Clone + Eq + PartialEq + std::fmt::Debug {} |