MCPcopy Create free account
hub / github.com/aws/clock-bound / new

Method new

clock-bound-ff-tester/src/simulation/vmclock.rs:66–79  ·  view source on GitHub ↗
(props: Props, id: String, oscillator: &FullModel, rng: Box<dyn RngCore>)

Source from the content-addressed store, hash-verified

64 /// Constructor
65 #[builder]
66 pub fn new(props: Props, id: String, oscillator: &FullModel, rng: Box<dyn RngCore>) -> Self {
67 let mut rv = Self {
68 id,
69 next_poll: props.update_period,
70 props,
71 next_event: None,
72 rng,
73 };
74
75 let next_event = rv.next_event(oscillator);
76 rv.next_event = next_event;
77
78 rv
79 }
80}
81
82impl Generator {

Callers

nothing calls this directly

Calls 1

next_eventMethod · 0.80

Tested by

no test coverage detected