pub struct ActivityDefinition {
pub source: NodeInfo,
pub destination: NodeInfo,
pub start_secs: Option<u16>,
pub count: Option<u64>,
pub interval_secs: ValueOrRange<u16>,
pub amount_msat: ValueOrRange<u64>,
}
Expand description
Data structure used internally by the simulator. Both source and destination are represented as PublicKey here. This is constructed during activity validation and passed along to the Simulation.
Fields§
§source: NodeInfo
The source of the payment.
destination: NodeInfo
The destination of the payment.
start_secs: Option<u16>
The time in the simulation to start the payment.
count: Option<u64>
The number of payments to send over the course of the simulation.
interval_secs: ValueOrRange<u16>
The interval of the event, as in every how many seconds the payment is performed.
amount_msat: ValueOrRange<u64>
The amount of m_sat to used in this payment.
Trait Implementations§
Source§impl Clone for ActivityDefinition
impl Clone for ActivityDefinition
Source§fn clone(&self) -> ActivityDefinition
fn clone(&self) -> ActivityDefinition
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ActivityDefinition
impl RefUnwindSafe for ActivityDefinition
impl Send for ActivityDefinition
impl Sync for ActivityDefinition
impl Unpin for ActivityDefinition
impl UnwindSafe for ActivityDefinition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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
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