pub struct Proposal<R, W, Ext, Rng> {
pub rng: Rng,
pub elapsed: Duration,
pub kind: ProposalKind<R, W, Ext>,
}Expand description
The proposal is the input to the state machine. It provides timer, io, random number generator, and user-defined data.
Fields§
§rng: Rng§elapsed: Duration§kind: ProposalKind<R, W, Ext>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<R, W, Ext, Rng> Freeze for Proposal<R, W, Ext, Rng>
impl<R, W, Ext, Rng> RefUnwindSafe for Proposal<R, W, Ext, Rng>
impl<R, W, Ext, Rng> Send for Proposal<R, W, Ext, Rng>
impl<R, W, Ext, Rng> Sync for Proposal<R, W, Ext, Rng>
impl<R, W, Ext, Rng> Unpin for Proposal<R, W, Ext, Rng>
impl<R, W, Ext, Rng> UnwindSafe for Proposal<R, W, Ext, Rng>
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