[][src]Struct lnrpc::Hop

pub struct Hop {
    pub chan_id: u64,
    pub chan_capacity: i64,
    pub amt_to_forward: i64,
    pub fee: i64,
    pub expiry: u32,
    pub amt_to_forward_msat: i64,
    pub fee_msat: i64,
    pub pub_key: String,
    pub tlv_payload: bool,
    pub mpp_record: Option<MppRecord>,
    pub custom_records: HashMap<u64, Vec<u8>>,
}

Fields

chan_id: u64

The unique channel ID for the channel. The first 3 bytes are the block height, the next 3 the index within the block, and the last 2 bytes are the output index for the channel.

chan_capacity: i64amt_to_forward: i64fee: i64expiry: u32amt_to_forward_msat: i64fee_msat: i64pub_key: String

An optional public key of the hop. If the public key is given, the payment can be executed without relying on a copy of the channel graph.

tlv_payload: bool

If set to true, then this hop will be encoded using the new variable length TLV format. Note that if any custom tlv_records below are specified, then this field MUST be set to true for them to be encoded properly.

mpp_record: Option<MppRecord>

An optional TLV record that signals the use of an MPP payment. If present, the receiver will enforce that that the same mpp_record is included in the final hop payload of all non-zero payments in the HTLC set. If empty, a regular single-shot payment is or was attempted.

custom_records: HashMap<u64, Vec<u8>>

An optional set of key-value TLV records. This is useful within the context of the SendToRoute call as it allows callers to specify arbitrary K-V pairs to drop off at each hop within the onion.

Trait Implementations

impl Clone for Hop[src]

impl Debug for Hop[src]

impl Default for Hop[src]

impl Message for Hop[src]

impl PartialEq<Hop> for Hop[src]

impl StructuralPartialEq for Hop[src]

Auto Trait Implementations

impl RefUnwindSafe for Hop

impl Send for Hop

impl Sync for Hop

impl Unpin for Hop

impl UnwindSafe for Hop

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WithSubscriber for T[src]