pub struct SimGraph { /* private fields */ }
Expand description
Graph is the top level struct that is used to coordinate simulation of lightning nodes.
Implementations§
Source§impl SimGraph
impl SimGraph
Sourcepub fn new(
graph_channels: Vec<SimulatedChannel>,
shutdown_trigger: Trigger,
) -> Result<Self, SimulationError>
pub fn new( graph_channels: Vec<SimulatedChannel>, shutdown_trigger: Trigger, ) -> Result<Self, SimulationError>
Creates a graph on which to simulate payments.
Sourcepub async fn wait_for_shutdown(&mut self)
pub async fn wait_for_shutdown(&mut self)
Blocks until all tasks created by the simulator have shut down. This function does not trigger shutdown, because it expects erroring-out tasks to handle their own shutdown triggering.
Auto Trait Implementations§
impl Freeze for SimGraph
impl !RefUnwindSafe for SimGraph
impl Send for SimGraph
impl Sync for SimGraph
impl Unpin for SimGraph
impl !UnwindSafe for SimGraph
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> 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