pub struct WaitForNextPaymentRequest {
pub start_index: Option<PaymentUpdatedIndex>,
pub timeout: Option<Duration>,
}Expand description
A request to wait for the payment information of the next updated payment.
Fields§
§start_index: Option<PaymentUpdatedIndex>The start index to begin waiting from. When tailing updates, this acts
as a cursor, and callers should set start_index using the previous
WaitForNextPaymentResponse::next_start_index.
If Some: The next payment will have updated_at > start_index, and
there will not exist any other payments with an updated_at in
between.
If None, and:
- Persistence is enabled: The next payment with an update that hasn’t been recorded locally will be returned.
- Persistence is disabled: The next payment update received by the node will be returned.
timeout: Option<Duration>If given, this method will stop waiting after timeout duration has
passed and return an error. If None, this method will wait
indefinitely.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WaitForNextPaymentRequest
impl<'de> Deserialize<'de> for WaitForNextPaymentRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WaitForNextPaymentRequest
impl RefUnwindSafe for WaitForNextPaymentRequest
impl Send for WaitForNextPaymentRequest
impl Sync for WaitForNextPaymentRequest
impl Unpin for WaitForNextPaymentRequest
impl UnwindSafe for WaitForNextPaymentRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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