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

Create a new electrs process connected with the given bitcoind and default args.

Create a new electrs process using given Conf connected with the given bitcoind

triggers electrs sync by sending the SIGUSR1 signal, useful to call after a block for example

Return the current workdir path of the running electrs

terminate the electrs process

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.