Enum ckb_app_config::DummyConfig
source · pub enum DummyConfig {
Constant {
value: u64,
},
Uniform {
low: u64,
high: u64,
},
Normal {
mean: f64,
std_dev: f64,
},
Poisson {
lambda: f64,
},
}
Expand description
Dummy worker config options.
Dummy worker can submit the new block at any time. This controls the pace that how much time the worker must wait before submitting a new block.
Variants§
Constant
Waits for a constant delay.
Uniform
Fields
Waits for a time which is uniformly sampled from a range.
Normal
Picks the wait time from a normal distribution.
Poisson
Picks the wait time from a poisson distribution.
Trait Implementations§
source§impl Clone for DummyConfig
impl Clone for DummyConfig
source§fn clone(&self) -> DummyConfig
fn clone(&self) -> DummyConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DummyConfig
impl Debug for DummyConfig
source§impl<'de> Deserialize<'de> for DummyConfig
impl<'de> Deserialize<'de> for DummyConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for DummyConfig
impl PartialEq for DummyConfig
source§fn eq(&self, other: &DummyConfig) -> bool
fn eq(&self, other: &DummyConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DummyConfig
impl Serialize for DummyConfig
impl StructuralPartialEq for DummyConfig
Auto Trait Implementations§
impl RefUnwindSafe for DummyConfig
impl Send for DummyConfig
impl Sync for DummyConfig
impl Unpin for DummyConfig
impl UnwindSafe for DummyConfig
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