Trait walletd_bitcoin::BlockchainConnector
source · pub trait BlockchainConnector {
type ErrorType: Error + Send + Sync + 'static;
// Required methods
fn new(url: &str) -> Result<Self, Self::ErrorType>
where Self: Sized;
fn url(&self) -> &str;
// Provided method
fn builder() -> BlockchainConnectorBuilder<Self>
where Self: Sized + Clone + BlockchainConnector { ... }
}
Expand description
Used to connect to a blockchain and send and receive information to and from the blockchain.
Required Associated Types§
Required Methods§
Provided Methods§
sourcefn builder() -> BlockchainConnectorBuilder<Self>where
Self: Sized + Clone + BlockchainConnector,
fn builder() -> BlockchainConnectorBuilder<Self>where Self: Sized + Clone + BlockchainConnector,
Returns the builder that can be used to build a BlockchainConnector with custom options.