Struct lightning_signer::util::velocity::VelocityControlSpec
source · pub struct VelocityControlSpec {
pub limit: u64,
pub interval_type: VelocityControlIntervalType,
}
Expand description
A specifier for creating velocity controls
Fields§
§limit: u64
The limit per interval
interval_type: VelocityControlIntervalType
The interval type
Implementations§
source§impl VelocityControlSpec
impl VelocityControlSpec
sourcepub const UNLIMITED: VelocityControlSpec = _
pub const UNLIMITED: VelocityControlSpec = _
A velocity control spec for controls which don’t limit velocity
Trait Implementations§
source§impl Clone for VelocityControlSpec
impl Clone for VelocityControlSpec
source§fn clone(&self) -> VelocityControlSpec
fn clone(&self) -> VelocityControlSpec
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 more