Struct lightning::ln::channelmanager::ChannelCounterparty
source · [−]pub struct ChannelCounterparty {
pub node_id: PublicKey,
pub features: InitFeatures,
pub unspendable_punishment_reserve: u64,
pub forwarding_info: Option<CounterpartyForwardingInfo>,
}
Expand description
Channel parameters which apply to our counterparty. These are split out from ChannelDetails
to better separate parameters.
Fields
node_id: PublicKey
The node_id of our counterparty
features: InitFeatures
The Features the channel counterparty provided upon last connection. Useful for routing as it is the most up-to-date copy of the counterparty’s features and many routing-relevant features are present in the init context.
unspendable_punishment_reserve: u64
The value, in satoshis, that must always be held in the channel for our counterparty. This value ensures that if our counterparty broadcasts a revoked state, we can punish them by claiming at least this value on chain.
This value is not included in inbound_capacity_msat
as it can never be spent.
forwarding_info: Option<CounterpartyForwardingInfo>
Information on the fees and requirements that the counterparty requires when forwarding payments to us through this channel.
Trait Implementations
sourceimpl Clone for ChannelCounterparty
impl Clone for ChannelCounterparty
sourcefn clone(&self) -> ChannelCounterparty
fn clone(&self) -> ChannelCounterparty
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChannelCounterparty
impl Debug for ChannelCounterparty
sourceimpl PartialEq<ChannelCounterparty> for ChannelCounterparty
impl PartialEq<ChannelCounterparty> for ChannelCounterparty
sourcefn eq(&self, other: &ChannelCounterparty) -> bool
fn eq(&self, other: &ChannelCounterparty) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChannelCounterparty) -> bool
fn ne(&self, other: &ChannelCounterparty) -> bool
This method tests for !=
.
sourceimpl Readable for ChannelCounterparty
impl Readable for ChannelCounterparty
sourceimpl Writeable for ChannelCounterparty
impl Writeable for ChannelCounterparty
sourcefn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
Writes self out to the given Writer
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
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
impl StructuralPartialEq for ChannelCounterparty
Auto Trait Implementations
impl RefUnwindSafe for ChannelCounterparty
impl Send for ChannelCounterparty
impl Sync for ChannelCounterparty
impl Unpin for ChannelCounterparty
impl UnwindSafe for ChannelCounterparty
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> MaybeReadable for T where
T: Readable,
impl<T> MaybeReadable for T where
T: Readable,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more