pub struct SpawnedNode { /* private fields */ }Expand description
A spawned LND node and its placement in the cluster.
Implementations§
Source§impl SpawnedNode
impl SpawnedNode
Sourcepub fn node_index(&self) -> usize
pub fn node_index(&self) -> usize
Return the zero-based node index in spawn order.
Sourcepub fn chain_group_index(&self) -> usize
pub fn chain_group_index(&self) -> usize
Return the Bitcoin Core chain group index backing this node.
Sourcepub fn node_config(&self) -> LndNodeConfig
pub fn node_config(&self) -> LndNodeConfig
Build an lnd_grpc_rust node connection config for this node.
Sourcepub fn public_key(&self) -> &str
pub fn public_key(&self) -> &str
Return the LND identity public key.
Trait Implementations§
Source§impl Clone for SpawnedNode
impl Clone for SpawnedNode
Source§fn clone(&self) -> SpawnedNode
fn clone(&self) -> SpawnedNode
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 SpawnedNode
impl RefUnwindSafe for SpawnedNode
impl Send for SpawnedNode
impl Sync for SpawnedNode
impl Unpin for SpawnedNode
impl UnsafeUnpin for SpawnedNode
impl UnwindSafe for SpawnedNode
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