Trait raftstore::store::util::ChangePeerI [−][src]
Abstracts over ChangePeerV2Request and (legacy) ChangePeerRequest to allow treating them in a unified manner.
Abstracts over ChangePeerV2Request and (legacy) ChangePeerRequest to allow treating them in a unified manner.
type CC: ConfChangeI
[src]type CP: AsRef<[ChangePeerRequest]>
[src]fn get_change_peers(&self) -> Self::CP
[src]fn to_confchange(&self, _: Vec<u8>) -> Self::CC
[src]impl<'a> ChangePeerI for &'a ChangePeerRequest
[src]type CC = ConfChange
type CP = Vec<ChangePeerRequest>
fn get_change_peers(&self) -> Vec<ChangePeerRequest>
[src]fn to_confchange(&self, ctx: Vec<u8>) -> ConfChange
[src]impl<'a> ChangePeerI for &'a ChangePeerV2Request
[src]type CC = ConfChangeV2
type CP = &'a [ChangePeerRequest]
fn get_change_peers(&self) -> &'a [ChangePeerRequest]
[src]fn to_confchange(&self, ctx: Vec<u8>) -> ConfChangeV2
[src]