nodecraft/
address.rs

1use core::fmt::{Debug, Display};
2
3mod impls;
4use cheap_clone::CheapClone;
5
6#[cfg(any(feature = "std", feature = "alloc"))]
7pub use impls::{Domain, DomainRef, HostAddr, HostAddrRef, ParseDomainError, ParseHostAddrError};
8
9/// Address abstraction for distributed systems
10pub trait Address:
11  CheapClone + Eq + Ord + core::hash::Hash + Debug + Display + Sized + Unpin + 'static
12{
13}
14
15impl<T> Address for T where
16  T: CheapClone + Eq + Ord + core::hash::Hash + Debug + Display + Sized + Unpin + 'static
17{
18}