pub enum ChannelShutdownState {
NotShuttingDown,
ShutdownInitiated,
ResolvingHTLCs,
NegotiatingClosingFee,
ShutdownComplete,
}Expand description
Further information on the details of the channel shutdown.
Upon channels being forced closed (i.e. commitment transaction confirmation detected
by ChainMonitor), ChannelShutdownState will be set to ShutdownComplete or
the channel will be removed shortly.
Also note, that in normal operation, peers could disconnect at any of these states
and require peer re-connection before making progress onto other states
Variants§
NotShuttingDown
Channel has not sent or received a shutdown message.
ShutdownInitiated
Local node has sent a shutdown message for this channel.
ResolvingHTLCs
Shutdown message exchanges have concluded and the channels are in the midst of resolving all existing open HTLCs before closing can continue.
NegotiatingClosingFee
All HTLCs have been resolved, nodes are currently negotiating channel close onchain fee rates.
ShutdownComplete
We’ve successfully negotiated a closing_signed dance. At this point ChannelManager is about
to drop the channel.
Trait Implementations§
Source§impl Clone for ChannelShutdownState
impl Clone for ChannelShutdownState
Source§fn clone(&self) -> ChannelShutdownState
fn clone(&self) -> ChannelShutdownState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChannelShutdownState
impl Debug for ChannelShutdownState
Source§impl PartialEq for ChannelShutdownState
impl PartialEq for ChannelShutdownState
Source§impl Readable for ChannelShutdownState
impl Readable for ChannelShutdownState
Source§impl Writeable for ChannelShutdownState
impl Writeable for ChannelShutdownState
impl Copy for ChannelShutdownState
impl Eq for ChannelShutdownState
impl StructuralPartialEq for ChannelShutdownState
Auto Trait Implementations§
impl Freeze for ChannelShutdownState
impl RefUnwindSafe for ChannelShutdownState
impl Send for ChannelShutdownState
impl Sync for ChannelShutdownState
impl Unpin for ChannelShutdownState
impl UnwindSafe for ChannelShutdownState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LengthReadable for Twhere
T: Readable,
impl<T> LengthReadable for Twhere
T: Readable,
Source§fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
Self in from the given LengthLimitedRead.