pub struct ElectrsD {
pub client: RawClient<ElectrumPlaintextStream>,
pub electrum_url: String,
pub esplora_url: Option<String>,
/* private fields */
}
Expand description
Struct representing the bitcoind process with related information
Fields§
§client: RawClient<ElectrumPlaintextStream>
Electrum client connected to the electrs process
electrum_url: String
Url to connect to the electrum protocol (tcp)
esplora_url: Option<String>
Url to connect to esplora protocol (http)
Implementations§
source§impl ElectrsD
impl ElectrsD
sourcepub fn new<S: AsRef<OsStr>>(exe: S, bitcoind: &BitcoinD) -> Result<ElectrsD>
pub fn new<S: AsRef<OsStr>>(exe: S, bitcoind: &BitcoinD) -> Result<ElectrsD>
Create a new electrs process connected with the given bitcoind and default args.
sourcepub fn with_conf<S: AsRef<OsStr>>(
exe: S,
bitcoind: &BitcoinD,
conf: &Conf<'_>
) -> Result<ElectrsD>
pub fn with_conf<S: AsRef<OsStr>>( exe: S, bitcoind: &BitcoinD, conf: &Conf<'_> ) -> Result<ElectrsD>
Create a new electrs process using given Conf connected with the given bitcoind
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ElectrsD
impl RefUnwindSafe for ElectrsD
impl Send for ElectrsD
impl Sync for ElectrsD
impl Unpin for ElectrsD
impl UnwindSafe for ElectrsD
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