Trait raftstore::store::util::ChangePeerI[][src]

pub trait ChangePeerI {
    type CC: ConfChangeI;
    type CP: AsRef<[ChangePeerRequest]>;
    fn get_change_peers(&self) -> Self::CP;
fn to_confchange(&self, _: Vec<u8>) -> Self::CC; }

Abstracts over ChangePeerV2Request and (legacy) ChangePeerRequest to allow treating them in a unified manner.

Associated Types

type CC: ConfChangeI[src]

type CP: AsRef<[ChangePeerRequest]>[src]

Loading content...

Required methods

fn get_change_peers(&self) -> Self::CP[src]

fn to_confchange(&self, _: Vec<u8>) -> Self::CC[src]

Loading content...

Implementations on Foreign Types

impl<'a> ChangePeerI for &'a ChangePeerRequest[src]

type CC = ConfChange

type CP = Vec<ChangePeerRequest>

impl<'a> ChangePeerI for &'a ChangePeerV2Request[src]

type CC = ConfChangeV2

type CP = &'a [ChangePeerRequest]

Loading content...

Implementors

Loading content...