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
sourceimpl ElectrsD
impl ElectrsD
sourcepub fn new<S: AsRef<OsStr>>(
exe: S,
bitcoind: &BitcoinD
) -> Result<ElectrsD, Error>
pub fn new<S: AsRef<OsStr>>(
exe: S,
bitcoind: &BitcoinD
) -> Result<ElectrsD, Error>
Create a new electrs process connected with the given bitcoind and default args.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ElectrsD
impl Send for ElectrsD
impl Sync for ElectrsD
impl Unpin for ElectrsD
impl UnwindSafe for ElectrsD
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more