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>; }

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

Required methods

fn into_v2(self) -> ConfChangeV2[src]

Converts conf change to ConfChangeV2.

fn as_v2(&self) -> Cow<'_, ConfChangeV2>[src]

Gets conf change as ConfChangeV2.

fn as_v1(&self) -> Option<&ConfChange>[src]

Converts conf change to ConfChange.

ConfChangeV2 can’t be changed back to ConfChange.

Loading content...

Implementors

impl ConfChangeI for ConfChange[src]

impl ConfChangeI for ConfChangeV2[src]

Loading content...