pub struct CdkLdkNodeBuilder { /* private fields */ }Expand description
A builder for an CdkLdkNode instance.
Implementations§
Source§impl CdkLdkNodeBuilder
impl CdkLdkNodeBuilder
Sourcepub fn new(
network: Network,
chain_source: ChainSource,
gossip_source: GossipSource,
storage_dir_path: String,
fee_reserve: FeeReserve,
listening_addresses: Vec<SocketAddress>,
) -> Self
pub fn new( network: Network, chain_source: ChainSource, gossip_source: GossipSource, storage_dir_path: String, fee_reserve: FeeReserve, listening_addresses: Vec<SocketAddress>, ) -> Self
Creates a new builder instance.
Sourcepub fn with_seed(self, seed: Mnemonic) -> Self
pub fn with_seed(self, seed: Mnemonic) -> Self
Configures the CdkLdkNode to use the Mnemonic for entropy source configuration
Sourcepub fn with_announcement_address(
self,
announcement_addresses: Vec<SocketAddress>,
) -> Self
pub fn with_announcement_address( self, announcement_addresses: Vec<SocketAddress>, ) -> Self
Configures the CdkLdkNode to use announce this address to the lightning network
Sourcepub fn with_log_dir_path(self, log_dir_path: String) -> Self
pub fn with_log_dir_path(self, log_dir_path: String) -> Self
Configures the CdkLdkNode to use announce this address to the lightning network
Sourcepub fn build(self) -> Result<CdkLdkNode, Error>
pub fn build(self) -> Result<CdkLdkNode, Error>
Builds the CdkLdkNode instance
§Errors
Returns an error if the LDK node builder fails to create the node
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CdkLdkNodeBuilder
impl RefUnwindSafe for CdkLdkNodeBuilder
impl Send for CdkLdkNodeBuilder
impl Sync for CdkLdkNodeBuilder
impl Unpin for CdkLdkNodeBuilder
impl UnsafeUnpin for CdkLdkNodeBuilder
impl UnwindSafe for CdkLdkNodeBuilder
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