pub trait Node: Send + Sync {
// Required methods
fn id(&self) -> NodeId;
fn coordinate(&self) -> Result<Coordinate>;
fn dial<P: Protocol>(
&self,
) -> impl Future<Output = Result<impl Protocol>> + Send + Sync;
}
Expand description
A Node trait
Required Methods§
Sourcefn coordinate(&self) -> Result<Coordinate>
fn coordinate(&self) -> Result<Coordinate>
Coordinate
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.