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§
Sourcefn c_relays(&self) -> &TiSlice<RouterStatusIdx, MdRouterStatus>
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".