pub struct SpawnLndBuilder { /* private fields */ }Expand description
Builder for SpawnLndConfig.
Implementations§
Source§impl SpawnLndBuilder
impl SpawnLndBuilder
Sourcepub fn node_config(self, node: NodeConfig) -> Self
pub fn node_config(self, node: NodeConfig) -> Self
Add one fully configured LND node.
Sourcepub fn bitcoind_image(self, image: impl Into<String>) -> Self
pub fn bitcoind_image(self, image: impl Into<String>) -> Self
Override the Bitcoin Core Docker image.
Sourcepub fn nodes_per_bitcoind(self, count: usize) -> Self
pub fn nodes_per_bitcoind(self, count: usize) -> Self
Set how many LND nodes share each Bitcoin Core container.
Sourcepub fn keep_containers(self, keep: bool) -> Self
pub fn keep_containers(self, keep: bool) -> Self
Preserve containers instead of removing them during shutdown or rollback.
Sourcepub fn startup_retry_policy(self, policy: RetryPolicy) -> Self
pub fn startup_retry_policy(self, policy: RetryPolicy) -> Self
Set the startup retry policy.
Sourcepub fn startup_retry(self, attempts: usize, interval_ms: usize) -> Self
pub fn startup_retry(self, attempts: usize, interval_ms: usize) -> Self
Set the startup retry policy from attempt and interval values.
Sourcepub fn cluster_subnet(self, subnet: impl Into<String>) -> Self
pub fn cluster_subnet(self, subnet: impl Into<String>) -> Self
Set the IPv4 subnet for the managed Docker bridge network.
Sourcepub fn build(self) -> Result<SpawnLndConfig, ConfigError>
pub fn build(self) -> Result<SpawnLndConfig, ConfigError>
Build and validate a SpawnLndConfig.
Sourcepub async fn spawn(self) -> Result<SpawnedCluster, SpawnError>
pub async fn spawn(self) -> Result<SpawnedCluster, SpawnError>
Build a config and spawn the cluster.
Trait Implementations§
Source§impl Clone for SpawnLndBuilder
impl Clone for SpawnLndBuilder
Source§fn clone(&self) -> SpawnLndBuilder
fn clone(&self) -> SpawnLndBuilder
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 moreSource§impl Debug for SpawnLndBuilder
impl Debug for SpawnLndBuilder
Source§impl Default for SpawnLndBuilder
impl Default for SpawnLndBuilder
Source§fn default() -> SpawnLndBuilder
fn default() -> SpawnLndBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpawnLndBuilder
impl RefUnwindSafe for SpawnLndBuilder
impl Send for SpawnLndBuilder
impl Sync for SpawnLndBuilder
impl Unpin for SpawnLndBuilder
impl UnsafeUnpin for SpawnLndBuilder
impl UnwindSafe for SpawnLndBuilder
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::RequestSource§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