#[repr(i32)]pub enum ResolutionOutcome {
OutcomeUnknown = 0,
Claimed = 1,
Unclaimed = 2,
Abandoned = 3,
FirstStage = 4,
Timeout = 5,
}Variants§
OutcomeUnknown = 0
Outcome unknown.
Claimed = 1
An output was claimed on chain.
Unclaimed = 2
An output was left unclaimed on chain.
Abandoned = 3
ResolverOutcomeAbandoned indicates that an output that we did not claim on chain, for example an anchor that we did not sweep and a third party claimed on chain, or a htlc that we could not decode so left unclaimed.
FirstStage = 4
If we force closed our channel, our htlcs need to be claimed in two stages. This outcome represents the broadcast of a timeout or success transaction for this two stage htlc claim.
Timeout = 5
A htlc was timed out on chain.
Implementations§
Source§impl ResolutionOutcome
impl ResolutionOutcome
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ResolutionOutcome
impl Clone for ResolutionOutcome
Source§fn clone(&self) -> ResolutionOutcome
fn clone(&self) -> ResolutionOutcome
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolutionOutcome
impl Debug for ResolutionOutcome
Source§impl Default for ResolutionOutcome
impl Default for ResolutionOutcome
Source§fn default() -> ResolutionOutcome
fn default() -> ResolutionOutcome
Source§impl From<ResolutionOutcome> for i32
impl From<ResolutionOutcome> for i32
Source§fn from(value: ResolutionOutcome) -> i32
fn from(value: ResolutionOutcome) -> i32
Source§impl Hash for ResolutionOutcome
impl Hash for ResolutionOutcome
Source§impl Ord for ResolutionOutcome
impl Ord for ResolutionOutcome
Source§fn cmp(&self, other: &ResolutionOutcome) -> Ordering
fn cmp(&self, other: &ResolutionOutcome) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ResolutionOutcome
impl PartialEq for ResolutionOutcome
Source§impl PartialOrd for ResolutionOutcome
impl PartialOrd for ResolutionOutcome
Source§impl TryFrom<i32> for ResolutionOutcome
impl TryFrom<i32> for ResolutionOutcome
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<ResolutionOutcome, UnknownEnumValue>
fn try_from(value: i32) -> Result<ResolutionOutcome, UnknownEnumValue>
impl Copy for ResolutionOutcome
impl Eq for ResolutionOutcome
impl StructuralPartialEq for ResolutionOutcome
Auto Trait Implementations§
impl Freeze for ResolutionOutcome
impl RefUnwindSafe for ResolutionOutcome
impl Send for ResolutionOutcome
impl Sync for ResolutionOutcome
impl Unpin for ResolutionOutcome
impl UnwindSafe for ResolutionOutcome
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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