Trait ConsensusRelays

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

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

Required Methods§

Source

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

Obtain the list of relays in the consensus

Implementations on Foreign Types§

Source§

impl ConsensusRelays for MdConsensus

Source§

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

Implementors§