Struct electrscash::daemon::Daemon
source · [−]pub struct Daemon { /* private fields */ }
Implementations
sourceimpl Daemon
impl Daemon
pub fn new(
daemon_dir: &Path,
blocks_dir: &Path,
daemon_rpc_addr: SocketAddr,
cookie_getter: Arc<dyn CookieGetter>,
network: Network,
signal: Waiter,
blocktxids_cache: Arc<BlockTxIDsCache>,
metrics: &Metrics
) -> Result<Daemon>
pub fn reconnect(&self) -> Result<Daemon>
pub fn list_blk_files(&self) -> Result<Vec<PathBuf>>
pub fn disk_magic(&self) -> u32
pub fn get_subversion(&self) -> Result<String>
pub fn get_relayfee(&self) -> Result<f64>
pub fn getbestblockhash(&self) -> Result<BlockHash>
pub fn getblockheader(&self, blockhash: &BlockHash) -> Result<BlockHeader>
pub fn getblockheaders(&self, heights: &[usize]) -> Result<Vec<BlockHeader>>
pub fn getblock(&self, blockhash: &BlockHash) -> Result<Block>
pub fn getblocktxids(&self, blockhash: &BlockHash) -> Result<Vec<Txid>>
pub fn gettransaction(
&self,
txhash: &Txid,
blockhash: Option<BlockHash>
) -> Result<Transaction>
pub fn gettransaction_raw(
&self,
txhash: &Txid,
blockhash: Option<&BlockHash>,
verbose: bool
) -> Result<Value>
pub fn getmempooltxids(&self) -> Result<HashSet<Txid>>
pub fn getmempoolentry(&self, txid: &Txid) -> Result<MempoolEntry>
pub fn broadcast(&self, tx: &Transaction) -> Result<Txid>
pub fn get_new_headers(
&self,
indexed_headers: &HeaderList,
bestblockhash: &BlockHash
) -> Result<Vec<BlockHeader>>
Auto Trait Implementations
impl !RefUnwindSafe for Daemon
impl Send for Daemon
impl Sync for Daemon
impl Unpin for Daemon
impl !UnwindSafe for Daemon
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
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self