pub enum ClaimDepositOutcome {
Settled {
payment: Payment,
},
Submitted,
Deferred {
reason: ClaimDeferredReason,
},
}Expand description
What became of a claim.
Variants§
Settled
Claimed at maturity and settled, carrying the payment it produced.
Submitted
Claimed ahead of maturity and submitted. The transfer settles
asynchronously, so no payment is returned yet: watch for it via events or
list_payments.
Deferred
Nothing was claimed yet, and no further call is needed: any fee ceiling this one asked for stands on the deposit, and the SDK keeps claiming it on its own. An early claim is attempted again as the deposit gains confirmations, so one declined for being too shallow is often claimed early a block or two later. Failing that, the deposit is claimed at maturity.
An ordinary outcome rather than a failure. reason says which of the two to
expect: a depth that has not arrived yet, or a cost the ceiling will not
cover.
Fields
reason: ClaimDeferredReasonTrait Implementations§
Source§impl Clone for ClaimDepositOutcome
impl Clone for ClaimDepositOutcome
Source§fn clone(&self) -> ClaimDepositOutcome
fn clone(&self) -> ClaimDepositOutcome
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClaimDepositOutcome
impl Debug for ClaimDepositOutcome
Auto Trait Implementations§
impl Freeze for ClaimDepositOutcome
impl RefUnwindSafe for ClaimDepositOutcome
impl Send for ClaimDepositOutcome
impl Sync for ClaimDepositOutcome
impl Unpin for ClaimDepositOutcome
impl UnsafeUnpin for ClaimDepositOutcome
impl UnwindSafe for ClaimDepositOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request