PathPaymentStrictReceiveResultCode

Enum PathPaymentStrictReceiveResultCode 

Source
#[repr(i32)]
pub enum PathPaymentStrictReceiveResultCode {
Show 13 variants Success = 0, Malformed = -1, Underfunded = -2, SrcNoTrust = -3, SrcNotAuthorized = -4, NoDestination = -5, NoTrust = -6, NotAuthorized = -7, LineFull = -8, NoIssuer = -9, TooFewOffers = -10, OfferCrossSelf = -11, OverSendmax = -12,
}
Expand description

PathPaymentStrictReceiveResultCode is an XDR Enum defines as:

enum PathPaymentStrictReceiveResultCode
{
    // codes considered as "success" for the operation
    PATH_PAYMENT_STRICT_RECEIVE_SUCCESS = 0, // success

    // codes considered as "failure" for the operation
    PATH_PAYMENT_STRICT_RECEIVE_MALFORMED = -1, // bad input
    PATH_PAYMENT_STRICT_RECEIVE_UNDERFUNDED =
        -2, // not enough funds in source account
    PATH_PAYMENT_STRICT_RECEIVE_SRC_NO_TRUST =
        -3, // no trust line on source account
    PATH_PAYMENT_STRICT_RECEIVE_SRC_NOT_AUTHORIZED =
        -4, // source not authorized to transfer
    PATH_PAYMENT_STRICT_RECEIVE_NO_DESTINATION =
        -5, // destination account does not exist
    PATH_PAYMENT_STRICT_RECEIVE_NO_TRUST =
        -6, // dest missing a trust line for asset
    PATH_PAYMENT_STRICT_RECEIVE_NOT_AUTHORIZED =
        -7, // dest not authorized to hold asset
    PATH_PAYMENT_STRICT_RECEIVE_LINE_FULL =
        -8, // dest would go above their limit
    PATH_PAYMENT_STRICT_RECEIVE_NO_ISSUER = -9, // missing issuer on one asset
    PATH_PAYMENT_STRICT_RECEIVE_TOO_FEW_OFFERS =
        -10, // not enough offers to satisfy path
    PATH_PAYMENT_STRICT_RECEIVE_OFFER_CROSS_SELF =
        -11, // would cross one of its own offers
    PATH_PAYMENT_STRICT_RECEIVE_OVER_SENDMAX = -12 // could not satisfy sendmax
};

Variants§

§

Success = 0

§

Malformed = -1

§

Underfunded = -2

§

SrcNoTrust = -3

§

SrcNotAuthorized = -4

§

NoDestination = -5

§

NoTrust = -6

§

NotAuthorized = -7

§

LineFull = -8

§

NoIssuer = -9

§

TooFewOffers = -10

§

OfferCrossSelf = -11

§

OverSendmax = -12

Implementations§

Trait Implementations§

Source§

impl Clone for PathPaymentStrictReceiveResultCode

Source§

fn clone(&self) -> PathPaymentStrictReceiveResultCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PathPaymentStrictReceiveResultCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for PathPaymentStrictReceiveResultCode

Source§

fn default() -> PathPaymentStrictReceiveResultCode

Returns the “default value” for a type. Read more
Source§

impl Discriminant<PathPaymentStrictReceiveResultCode> for PathPaymentStrictReceiveResult

Source§

impl Display for PathPaymentStrictReceiveResultCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Hash for PathPaymentStrictReceiveResultCode

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Name for PathPaymentStrictReceiveResultCode

Source§

fn name(&self) -> &'static str

Source§

impl Ord for PathPaymentStrictReceiveResultCode

Source§

fn cmp(&self, other: &PathPaymentStrictReceiveResultCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for PathPaymentStrictReceiveResultCode

Source§

fn eq(&self, other: &PathPaymentStrictReceiveResultCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for PathPaymentStrictReceiveResultCode

Source§

fn partial_cmp( &self, other: &PathPaymentStrictReceiveResultCode, ) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl ReadXdr for PathPaymentStrictReceiveResultCode

Source§

fn read_xdr<R>( r: &mut Limited<R>, ) -> Result<PathPaymentStrictReceiveResultCode, Error>
where R: Read,

Read the XDR and construct the type. Read more
Source§

fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>
where R: Read,

Read the XDR and construct the type, and consider it an error if the read does not completely consume the read implementation. Read more
Source§

fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>
where R: Read,

Read the XDR and construct the type. Read more
Source§

fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>
where R: Read,

Read the XDR into the existing value, and consider it an error if the read does not completely consume the read implementation. Read more
Source§

fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self>
where R: Read,

Create an iterator that reads the read implementation as a stream of values that are read into the implementing type. Read more
Source§

fn from_xdr(bytes: impl AsRef<[u8]>, limits: Limits) -> Result<Self, Error>

Construct the type from the XDR bytes. Read more
Source§

impl TryFrom<i32> for PathPaymentStrictReceiveResultCode

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(i: i32) -> Result<PathPaymentStrictReceiveResultCode, Error>

Performs the conversion.
Source§

impl Variants<PathPaymentStrictReceiveResultCode> for PathPaymentStrictReceiveResult

Source§

impl Variants<PathPaymentStrictReceiveResultCode> for PathPaymentStrictReceiveResultCode

Source§

impl WriteXdr for PathPaymentStrictReceiveResultCode

Source§

fn write_xdr<W>(&self, w: &mut Limited<W>) -> Result<(), Error>
where W: Write,

Source§

fn to_xdr(&self, limits: Limits) -> Result<Vec<u8>, Error>

Source§

impl Copy for PathPaymentStrictReceiveResultCode

Source§

impl Enum for PathPaymentStrictReceiveResultCode

Source§

impl Eq for PathPaymentStrictReceiveResultCode

Source§

impl StructuralPartialEq for PathPaymentStrictReceiveResultCode

Source§

impl Union<PathPaymentStrictReceiveResultCode> for PathPaymentStrictReceiveResult

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> XDRDeserialize for T
where T: ReadXdr,

Source§

fn from_xdr_bytes(buffer: &[u8]) -> Result<(T, u64), Error>

Source§

fn from_xdr_base64(encoded: &str) -> Result<Self>

Source§

impl<T> XDRSerialize for T
where T: WriteXdr + ?Sized,

Source§

fn write_xdr(&self, out: &mut Vec<u8>) -> Result<u64, Error>

Source§

fn xdr_bytes(&self) -> Result<Vec<u8>>

Source§

fn xdr_base64(&self) -> Result<String>