[−][src]Trait sunshine_util::traits::ApplyVote
Applies vote in the context of the existing module instance
Associated Types
type Direction
type Vote: VoteVector<Self::Signal, Self::Direction>
type State: Approved + Apply<Self::Vote> + Revert<Self::Vote> + UpdateOutcome
Required methods
fn apply_vote(
state: Self::State,
new_vote: Self::Vote,
old_vote: Option<Self::Vote>
) -> Result<(Self::State, Option<(bool, Self::Signal)>), DispatchError>
state: Self::State,
new_vote: Self::Vote,
old_vote: Option<Self::Vote>
) -> Result<(Self::State, Option<(bool, Self::Signal)>), DispatchError>