pub struct Votes {
votes_command: VotesCommand,
}
Fields§
§votes_command: VotesCommand
Implementations§
source§impl Votes
impl Votes
pub fn new(votes_command: VotesCommand) -> Self
pub fn committee(self) -> Committee
pub fn crs(self) -> Crs
pub fn election_public_key<S: Into<String>>( self, member_key: S ) -> Result<String, Error>
pub fn tally(self) -> Tally
pub fn update_proposal<P: AsRef<Path>, Q: AsRef<Path>>( self, config: P, secret: Q ) -> String
pub fn update_vote<R: Into<String>, P: AsRef<Path>>( self, proposal_id: R, secret: P ) -> String
Auto Trait Implementations§
impl !RefUnwindSafe for Votes
impl Send for Votes
impl Sync for Votes
impl Unpin for Votes
impl !UnwindSafe for Votes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request