Struct lightning::routing::network_graph::DirectionalChannelInfo[][src]

pub struct DirectionalChannelInfo {
    pub last_update: u32,
    pub enabled: bool,
    pub cltv_expiry_delta: u16,
    pub htlc_minimum_msat: u64,
    pub htlc_maximum_msat: Option<u64>,
    pub fees: RoutingFees,
    pub last_update_message: Option<ChannelUpdate>,
}
Expand description

Details about one direction of a channel. Received within a channel update.

Fields

last_update: u32

When the last update to the channel direction was issued. Value is opaque, as set in the announcement.

enabled: bool

Whether the channel can be currently used for payments (in this one direction).

cltv_expiry_delta: u16

The difference in CLTV values that you must have when routing through this channel.

htlc_minimum_msat: u64

The minimum value, which must be relayed to the next hop via the channel

htlc_maximum_msat: Option<u64>

The maximum value which may be relayed to the next hop via the channel.

fees: RoutingFees

Fees charged when the channel is used for routing

last_update_message: Option<ChannelUpdate>

Most recent update for the channel received from the network Mostly redundant with the data we store in fields explicitly. Everything else is useful only for sending out for initial routing sync. Not stored if contains excess data to prevent DoS.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Reads a Self in from the given Read

Writes self out to the given Writer

Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more

Writes self out to a Vec

Writes self out to a Vec

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.