pub struct InvoiceSubscription { /* private fields */ }Expand description
Invoice subscription for real-time updates
Implementations§
Source§impl InvoiceSubscription
impl InvoiceSubscription
Sourcepub fn new(receiver: Receiver<InvoiceUpdate>) -> Self
pub fn new(receiver: Receiver<InvoiceUpdate>) -> Self
Create a new subscription
Sourcepub async fn next(&mut self) -> Option<InvoiceUpdate>
pub async fn next(&mut self) -> Option<InvoiceUpdate>
Wait for next invoice update
Auto Trait Implementations§
impl Freeze for InvoiceSubscription
impl RefUnwindSafe for InvoiceSubscription
impl Send for InvoiceSubscription
impl Sync for InvoiceSubscription
impl Unpin for InvoiceSubscription
impl UnwindSafe for InvoiceSubscription
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