pub enum PathPaymentStrictSendResult {
Show 13 variants
Success(PathPaymentStrictSendResultSuccess),
Malformed,
Underfunded,
SrcNoTrust,
SrcNotAuthorized,
NoDestination,
NoTrust,
NotAuthorized,
LineFull,
NoIssuer(Asset),
TooFewOffers,
OfferCrossSelf,
UnderDestmin,
}
Variants§
Success(PathPaymentStrictSendResultSuccess)
Malformed
Underfunded
SrcNoTrust
SrcNotAuthorized
NoDestination
NoTrust
NotAuthorized
LineFull
NoIssuer(Asset)
TooFewOffers
OfferCrossSelf
UnderDestmin
Implementations§
§impl PathPaymentStrictSendResult
impl PathPaymentStrictSendResult
pub const VARIANTS: [PathPaymentStrictSendResultCode; 13] = [PathPaymentStrictSendResultCode::Success, PathPaymentStrictSendResultCode::Malformed, PathPaymentStrictSendResultCode::Underfunded, PathPaymentStrictSendResultCode::SrcNoTrust, PathPaymentStrictSendResultCode::SrcNotAuthorized, PathPaymentStrictSendResultCode::NoDestination, PathPaymentStrictSendResultCode::NoTrust, PathPaymentStrictSendResultCode::NotAuthorized, PathPaymentStrictSendResultCode::LineFull, PathPaymentStrictSendResultCode::NoIssuer, PathPaymentStrictSendResultCode::TooFewOffers, PathPaymentStrictSendResultCode::OfferCrossSelf, PathPaymentStrictSendResultCode::UnderDestmin]
pub const VARIANTS_STR: [&'static str; 13] = ["Success", "Malformed", "Underfunded", "SrcNoTrust", "SrcNotAuthorized", "NoDestination", "NoTrust", "NotAuthorized", "LineFull", "NoIssuer", "TooFewOffers", "OfferCrossSelf", "UnderDestmin"]
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> PathPaymentStrictSendResultCode
pub const fn variants() -> [PathPaymentStrictSendResultCode; 13]
Trait Implementations§
§impl Clone for PathPaymentStrictSendResult
impl Clone for PathPaymentStrictSendResult
§fn clone(&self) -> PathPaymentStrictSendResult
fn clone(&self) -> PathPaymentStrictSendResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for PathPaymentStrictSendResult
impl Debug for PathPaymentStrictSendResult
§impl Discriminant<PathPaymentStrictSendResultCode> for PathPaymentStrictSendResult
impl Discriminant<PathPaymentStrictSendResultCode> for PathPaymentStrictSendResult
fn discriminant(&self) -> PathPaymentStrictSendResultCode
§impl Hash for PathPaymentStrictSendResult
impl Hash for PathPaymentStrictSendResult
§impl Ord for PathPaymentStrictSendResult
impl Ord for PathPaymentStrictSendResult
§fn cmp(&self, other: &PathPaymentStrictSendResult) -> Ordering
fn cmp(&self, other: &PathPaymentStrictSendResult) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq<PathPaymentStrictSendResult> for PathPaymentStrictSendResult
impl PartialEq<PathPaymentStrictSendResult> for PathPaymentStrictSendResult
§fn eq(&self, other: &PathPaymentStrictSendResult) -> bool
fn eq(&self, other: &PathPaymentStrictSendResult) -> bool
§impl PartialOrd<PathPaymentStrictSendResult> for PathPaymentStrictSendResult
impl PartialOrd<PathPaymentStrictSendResult> for PathPaymentStrictSendResult
§fn partial_cmp(&self, other: &PathPaymentStrictSendResult) -> Option<Ordering>
fn partial_cmp(&self, other: &PathPaymentStrictSendResult) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more