NodeType

Trait NodeType 

Source
pub trait NodeType:
    Clone
    + Debug
    + Send
    + Sized
    + PartialEq
    + Eq {
    // Required methods
    fn accept_incoming_links(&self) -> bool;
    fn accept_outgoing_links(&self) -> bool;
}

Required Methods§

Whether or not the node allows incoming connections

Whether or not the node allows outgoing connections

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.

Implementors§