Struct brb_membership::brb_membership::State [−][src]
Fields
id: SA
gen: Generation
pending_gen: Generation
forced_reconfigs: BTreeMap<Generation, BTreeSet<Reconfig<A>>>
history: BTreeMap<Generation, Vote<A, S>>
votes: BTreeMap<A, Vote<A, S>>
faulty: bool
Implementations
impl<A, SA, S> State<A, SA, S> where
A: Actor<S>,
SA: SigningActor<A, S>,
S: Sig,
[src]
A: Actor<S>,
SA: SigningActor<A, S>,
S: Sig,
pub fn new() -> Self
[src]
pub fn force_join(&mut self, actor: A)
[src]
pub fn force_leave(&mut self, actor: A)
[src]
pub fn members(&self, gen: Generation) -> Result<BTreeSet<A>, Error<A, S>>
[src]
pub fn propose(
&mut self,
reconfig: Reconfig<A>
) -> Result<Vec<VoteMsg<A, S>>, Error<A, S>>
[src]
&mut self,
reconfig: Reconfig<A>
) -> Result<Vec<VoteMsg<A, S>>, Error<A, S>>
pub fn anti_entropy(&self, from_gen: Generation, actor: A) -> Vec<VoteMsg<A, S>>
[src]
pub fn handle_vote(
&mut self,
vote: Vote<A, S>
) -> Result<Vec<VoteMsg<A, S>>, Error<A, S>>
[src]
&mut self,
vote: Vote<A, S>
) -> Result<Vec<VoteMsg<A, S>>, Error<A, S>>
pub fn validate_vote(&self, vote: &Vote<A, S>) -> Result<(), Error<A, S>>
[src]
pub fn validate_reconfig(
&self,
reconfig: &Reconfig<A>
) -> Result<(), Error<A, S>>
[src]
&self,
reconfig: &Reconfig<A>
) -> Result<(), Error<A, S>>
Trait Implementations
impl<A: Debug + Ord, SA: Debug, S: Debug + Ord> Debug for State<A, SA, S>
[src]
impl<A, SA, S> Default for State<A, SA, S> where
A: Actor<S>,
SA: SigningActor<A, S>,
S: Sig,
[src]
A: Actor<S>,
SA: SigningActor<A, S>,
S: Sig,
Auto Trait Implementations
impl<A, SA, S> RefUnwindSafe for State<A, SA, S> where
A: RefUnwindSafe,
S: RefUnwindSafe,
SA: RefUnwindSafe,
[src]
A: RefUnwindSafe,
S: RefUnwindSafe,
SA: RefUnwindSafe,
impl<A, SA, S> Send for State<A, SA, S> where
A: Send,
S: Send,
SA: Send,
[src]
A: Send,
S: Send,
SA: Send,
impl<A, SA, S> Sync for State<A, SA, S> where
A: Sync,
S: Sync,
SA: Sync,
[src]
A: Sync,
S: Sync,
SA: Sync,
impl<A, SA, S> Unpin for State<A, SA, S> where
SA: Unpin,
[src]
SA: Unpin,
impl<A, SA, S> UnwindSafe for State<A, SA, S> where
A: RefUnwindSafe,
S: RefUnwindSafe,
SA: UnwindSafe,
[src]
A: RefUnwindSafe,
S: RefUnwindSafe,
SA: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,