Enum ChannelShutdownState
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§
§impl Clone for ChannelShutdownState
impl Clone for ChannelShutdownState
§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 more§impl Debug for ChannelShutdownState
impl Debug for ChannelShutdownState
§impl PartialEq for ChannelShutdownState
impl PartialEq for ChannelShutdownState
§impl Readable for ChannelShutdownState
impl Readable for ChannelShutdownState
§fn read<R>(reader: &mut R) -> Result<ChannelShutdownState, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<ChannelShutdownState, DecodeError>where
R: Read,
Self
in from the given Read
.§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request