pub struct PaymentMonitorTask { /* private fields */ }Expand description
Background payment monitoring task
Implementations§
Source§impl PaymentMonitorTask
impl PaymentMonitorTask
Sourcepub fn new(
client: Arc<BitcoinClient>,
config: MonitorConfig,
shutdown: Receiver<bool>,
) -> Self
pub fn new( client: Arc<BitcoinClient>, config: MonitorConfig, shutdown: Receiver<bool>, ) -> Self
Create a new payment monitor task
Sourcepub fn with_event_sender(self, sender: Sender<PaymentEvent>) -> Self
pub fn with_event_sender(self, sender: Sender<PaymentEvent>) -> Self
Set the event sender channel
Auto Trait Implementations§
impl Freeze for PaymentMonitorTask
impl !RefUnwindSafe for PaymentMonitorTask
impl Send for PaymentMonitorTask
impl Sync for PaymentMonitorTask
impl Unpin for PaymentMonitorTask
impl !UnwindSafe for PaymentMonitorTask
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