Skip to main content

ConsensusRelays

Trait ConsensusRelays 

Source
pub(crate) trait ConsensusRelays {
    // Required method
    fn c_relays(&self) -> &TiSlice<RouterStatusIdx, MdRouterStatus>;
}
Expand description

Extension trait to provide index-type-safe .c_relays() method

Required Methods§

Source

fn c_relays(&self) -> &TiSlice<RouterStatusIdx, MdRouterStatus>

Obtain the list of relays in the consensus

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ConsensusRelays for MdConsensus

Implementors§