pub struct VoteCastsGenerator<'a, S: SyncNode + Send> {
voters: Vec<Wallet>,
vote_plan: VotePlan,
node: RemoteJormungandr,
rand: OsRng,
fragment_sender: FragmentSender<'a, S>,
send_marker: usize,
votes_register: VoteCastCounter,
}
Fields§
§voters: Vec<Wallet>
§vote_plan: VotePlan
§node: RemoteJormungandr
§rand: OsRng
§fragment_sender: FragmentSender<'a, S>
§send_marker: usize
§votes_register: VoteCastCounter
Implementations§
source§impl<'a, S: SyncNode + Send> VoteCastsGenerator<'a, S>
impl<'a, S: SyncNode + Send> VoteCastsGenerator<'a, S>
pub fn new( voters: Vec<Wallet>, vote_plan: VotePlan, node: RemoteJormungandr, fragment_sender: FragmentSender<'a, S> ) -> Self
pub fn send(&mut self) -> Result<MemPoolCheck, FragmentSenderError>
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for VoteCastsGenerator<'a, S>
impl<'a, S> Send for VoteCastsGenerator<'a, S>where S: Sync,
impl<'a, S> !Sync for VoteCastsGenerator<'a, S>
impl<'a, S> Unpin for VoteCastsGenerator<'a, S>
impl<'a, S> !UnwindSafe for VoteCastsGenerator<'a, S>
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