Struct bitcoind_watcher::BitcoindWatcher
source · [−]pub struct BitcoindWatcher { /* private fields */ }Implementations
sourceimpl BitcoindWatcher
impl BitcoindWatcher
pub fn run(&self)
pub fn new(log_path: &str) -> Self
pub fn on_transaction_added_to_mempool(
self,
callback: Box<dyn Fn(LogLine) + 'static>
) -> Self
pub fn on_new_proof_of_work_valid_block(
self,
callback: Box<dyn Fn(LogLine) + 'static>
) -> Self
pub fn on_new_outbound_peer_connected(
self,
callback: Box<dyn Fn(LogLine) + 'static>
) -> Self
Auto Trait Implementations
impl !RefUnwindSafe for BitcoindWatcher
impl !Send for BitcoindWatcher
impl !Sync for BitcoindWatcher
impl Unpin for BitcoindWatcher
impl !UnwindSafe for BitcoindWatcher
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