Trait raft_proto::ConfChangeI[][src]

pub trait ConfChangeI {
    fn into_v2(self) -> ConfChangeV2;
fn as_v2(&self) -> Cow<'_, ConfChangeV2>;
fn as_v1(&self) -> Option<&ConfChange>; }
Expand description

Abstracts over ConfChangeV2 and (legacy) ConfChange to allow treating them in a unified manner.

Required methods

Converts conf change to ConfChangeV2.

Gets conf change as ConfChangeV2.

Converts conf change to ConfChange.

ConfChangeV2 can’t be changed back to ConfChange.

Implementors