pub struct ChannelSetup {
pub is_outbound: bool,
pub channel_value_sat: u64,
pub push_value_msat: u64,
pub funding_outpoint: OutPoint,
pub holder_selected_contest_delay: u16,
pub holder_shutdown_script: Option<ScriptBuf>,
pub counterparty_points: ChannelPublicKeys,
pub counterparty_selected_contest_delay: u16,
pub counterparty_shutdown_script: Option<ScriptBuf>,
pub commitment_type: CommitmentType,
}
Expand description
The negotiated parameters for the Channel
Fields§
§is_outbound: bool
Whether the channel is outbound
channel_value_sat: u64
The total the channel was funded with
push_value_msat: u64
How much was pushed to the counterparty
funding_outpoint: OutPoint
The funding outpoint
holder_selected_contest_delay: u16
locally imposed requirement on the remote commitment transaction to_self_delay
holder_shutdown_script: Option<ScriptBuf>
The holder’s optional upfront shutdown script
counterparty_points: ChannelPublicKeys
The counterparty’s basepoints and pubkeys
counterparty_selected_contest_delay: u16
remotely imposed requirement on the local commitment transaction to_self_delay
counterparty_shutdown_script: Option<ScriptBuf>
The counterparty’s optional upfront shutdown script
commitment_type: CommitmentType
The negotiated commitment type
Implementations§
Source§impl ChannelSetup
impl ChannelSetup
Sourcepub fn is_static_remotekey(&self) -> bool
pub fn is_static_remotekey(&self) -> bool
True if this channel uses static to_remote key
Sourcepub fn is_anchors(&self) -> bool
pub fn is_anchors(&self) -> bool
True if this channel uses anchors
Sourcepub fn is_zero_fee_htlc(&self) -> bool
pub fn is_zero_fee_htlc(&self) -> bool
True if this channel uses zero fee htlc with anchors
Sourcepub fn features(&self) -> ChannelTypeFeatures
pub fn features(&self) -> ChannelTypeFeatures
Convert the channel type to a ChannelTypeFeatures
Trait Implementations§
Source§impl Clone for ChannelSetup
impl Clone for ChannelSetup
Source§fn clone(&self) -> ChannelSetup
fn clone(&self) -> ChannelSetup
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChannelSetup
impl Debug for ChannelSetup
Source§impl<'de> Deserialize<'de> for ChannelSetup
impl<'de> Deserialize<'de> for ChannelSetup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChannelSetup
impl PartialEq for ChannelSetup
Source§impl Serialize for ChannelSetup
impl Serialize for ChannelSetup
impl StructuralPartialEq for ChannelSetup
Auto Trait Implementations§
impl Freeze for ChannelSetup
impl RefUnwindSafe for ChannelSetup
impl Send for ChannelSetup
impl Sync for ChannelSetup
impl Unpin for ChannelSetup
impl UnwindSafe for ChannelSetup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more