Skip to main content

PayChannel

Struct PayChannel 

Source
pub struct PayChannel { /* private fields */ }

Implementations§

Source§

impl PayChannel

Source

pub fn new(slot_num: i32) -> Self

Binds this handle to a host-managed slot holding a PayChannel ledger object.

Trait Implementations§

Source§

impl Clone for PayChannel

Source§

fn clone(&self) -> PayChannel

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for PayChannel

Source§

impl Debug for PayChannel

Source§

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

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

impl Eq for PayChannel

Source§

impl LedgerObjectCommonFields for PayChannel

Source§

fn get_slot_num(&self) -> i32

Returns the slot number (register number) where the ledger object is stored. Read more
Source§

fn path(&self) -> LedgerPathBuilder

Starts a nested-field path rooted at this ledger object, read through its slot. Read more
Source§

fn get_flags(&self) -> Result<u32>

Retrieves the flags field of the ledger object. Read more
Source§

fn get_ledger_entry_type(&self) -> Result<u16>

Retrieves the ledger entry type of the object. Read more
Source§

impl PartialEq for PayChannel

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PayChannelFields for PayChannel

Source§

fn account(&self) -> Result<AccountID>

The source address that owns this payment channel. This comes from the sending address of the transaction that created the channel.
Source§

fn destination(&self) -> Result<AccountID>

The destination address for this payment channel. While the payment channel is open, this address is the only one that can receive XRP from the channel. This comes from the Destination field of the transaction that created the channel.
Source§

fn sequence(&self) -> Result<Option<u32>>

The Sequence field (Optional).
Source§

fn amount(&self) -> Result<Amount>

Total XRP, in drops, that have been allocated to this channel. This includes amounts that have been paid to the destination address. This is initially set by the transaction that created the channel and can be increased if the source address sends a PaymentChannelFund transaction.
Source§

fn balance(&self) -> Result<Amount>

Total XRP, in drops already paid out by the channel. The difference between this value and the Amount field is how much can still be paid to the destination address with PaymentChannelClaim transactions. If the channel closes, the remaining difference is returned to the source address.
Source§

fn public_key(&self) -> Result<PublicKeyBlob>

Public key, in hexadecimal, of the key pair that can be used to sign claims against this channel. This can be any valid secp256k1 or Ed25519 public key. This is set by the transaction that created the channel and must match the public key used in claims against the channel. The channel source address can also send XRP from this channel to the destination without signed claims.
Source§

fn settle_delay(&self) -> Result<u32>

Number of seconds the source address must wait to close the channel if it still has any XRP in it. Smaller values mean that the destination address has less time to redeem any outstanding claims after the source address requests to close the channel. Can be any value that fits in a 32-bit unsigned integer (0 to 2^32-1). This is set by the transaction that creates the channel.
Source§

fn expiration(&self) -> Result<Option<u32>>

The mutable expiration time for this payment channel, in seconds since the Ripple Epoch. The channel is expired if this value is present and smaller than the previous ledger’s close_time field. See Channel Expiration for more details.
Source§

fn cancel_after(&self) -> Result<Option<u32>>

The immutable expiration time for this payment channel, in seconds since the Ripple Epoch. This channel is expired if this value is present and smaller than the previous ledger’s close_time field. This is optionally set by the transaction that created the channel, and cannot be changed.
Source§

fn source_tag(&self) -> Result<Option<u32>>

An arbitrary tag to further specify the source for this payment channel, such as a hosted recipient at the owner’s address.
Source§

fn destination_tag(&self) -> Result<Option<u32>>

An arbitrary tag to further specify the destination for this payment channel, such as a hosted recipient at the destination address.
Source§

fn owner_node(&self) -> Result<u64>

A hint indicating which page of the source address’s owner directory links to this entry, in case the directory consists of multiple pages.
Source§

fn previous_txn_id(&self) -> Result<Hash256>

The identifying hash of the transaction that most recently modified this entry.
Source§

fn previous_txn_lgr_seq(&self) -> Result<u32>

The index of the ledger that contains the transaction that most recently modified this entry.
Source§

fn destination_node(&self) -> Result<Option<u64>>

A hint indicating which page of the destination’s owner directory links to this entry, in case the directory consists of multiple pages. Omitted on payment channels created before enabling the fixPayChanRecipientOwnerDir amendment.
Source§

impl StructuralPartialEq for PayChannel

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
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

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

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.