pub struct LndConfig {
pub cluster_id: String,
pub alias: String,
pub node_index: usize,
pub image: String,
pub extra_args: Vec<String>,
pub startup_retry: RetryPolicy,
pub network: Option<String>,
pub ipv4_address: Option<String>,
}Expand description
Configuration for one spawned LND node.
Fields§
§cluster_id: StringCluster identifier used in container names and labels.
alias: StringLND alias.
node_index: usizeZero-based node index in spawn order.
image: StringDocker image used for this LND container.
extra_args: Vec<String>Extra command-line flags appended to the LND command.
startup_retry: RetryPolicyRetry policy used while waiting for wallet init and chain sync.
network: Option<String>Optional Docker network name.
ipv4_address: Option<String>Optional static IPv4 address on the configured Docker network.
Implementations§
Source§impl LndConfig
impl LndConfig
Sourcepub fn new(
cluster_id: impl Into<String>,
alias: impl Into<String>,
node_index: usize,
) -> Self
pub fn new( cluster_id: impl Into<String>, alias: impl Into<String>, node_index: usize, ) -> Self
Create an LND config using the default pinned image.
Sourcepub fn extra_arg(self, arg: impl Into<String>) -> Self
pub fn extra_arg(self, arg: impl Into<String>) -> Self
Append one extra LND command-line argument.
Sourcepub fn extra_args<I, S>(self, args: I) -> Self
pub fn extra_args<I, S>(self, args: I) -> Self
Append multiple extra LND command-line arguments.
Sourcepub fn startup_retry_policy(self, policy: RetryPolicy) -> Self
pub fn startup_retry_policy(self, policy: RetryPolicy) -> Self
Override the startup retry policy.
Sourcepub fn network(self, network: impl Into<String>) -> Self
pub fn network(self, network: impl Into<String>) -> Self
Attach this LND container to a Docker network.
Sourcepub fn ipv4_address(self, ip: impl Into<String>) -> Self
pub fn ipv4_address(self, ip: impl Into<String>) -> Self
Assign a static IPv4 address on the configured Docker network.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LndConfig
impl<'de> Deserialize<'de> for LndConfig
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
impl Eq for LndConfig
impl StructuralPartialEq for LndConfig
Auto Trait Implementations§
impl Freeze for LndConfig
impl RefUnwindSafe for LndConfig
impl Send for LndConfig
impl Sync for LndConfig
impl Unpin for LndConfig
impl UnsafeUnpin for LndConfig
impl UnwindSafe for LndConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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