Uses of Class
org.ldk.structs.ClosureReason
-
Packages that use ClosureReason Package Description org.ldk.structs -
-
Uses of ClosureReason in org.ldk.structs
Subclasses of ClosureReason in org.ldk.structs Modifier and Type Class Description static class
ClosureReason.CommitmentTxConfirmed
A commitment transaction was confirmed on chain, closing the channel.static class
ClosureReason.CooperativeClosure
The channel was closed after negotiating a cooperative close and we've now broadcasted the cooperative close transaction.static class
ClosureReason.CounterpartyForceClosed
Closure generated from receiving a peer error message.static class
ClosureReason.DisconnectedPeer
The peer disconnected prior to funding completing.static class
ClosureReason.FundingTimedOut
The funding transaction failed to confirm in a timely manner on an inbound channel.static class
ClosureReason.HolderForceClosed
Closure generated from [`ChannelManager::force_close_channel`], called by the user.static class
ClosureReason.OutdatedChannelManager
Closure generated from `ChannelManager::read` if the [`ChannelMonitor`] is newer than the [`ChannelManager`] deserialized.static class
ClosureReason.ProcessingError
Closure generated from processing an event, likely a HTLC forward/relay/reception.Fields in org.ldk.structs declared as ClosureReason Modifier and Type Field Description ClosureReason
Event.ChannelClosed. reason
The reason the channel was closed.ClosureReason
Option_ClosureReasonZ.Some. some
Methods in org.ldk.structs that return ClosureReason Modifier and Type Method Description ClosureReason
ClosureReason. clone()
Creates a copy of the ClosureReasonstatic ClosureReason
ClosureReason. commitment_tx_confirmed()
Utility method to constructs a new CommitmentTxConfirmed-variant ClosureReasonstatic ClosureReason
ClosureReason. cooperative_closure()
Utility method to constructs a new CooperativeClosure-variant ClosureReasonstatic ClosureReason
ClosureReason. counterparty_force_closed(UntrustedString peer_msg)
Utility method to constructs a new CounterpartyForceClosed-variant ClosureReasonstatic ClosureReason
ClosureReason. disconnected_peer()
Utility method to constructs a new DisconnectedPeer-variant ClosureReasonstatic ClosureReason
ClosureReason. funding_timed_out()
Utility method to constructs a new FundingTimedOut-variant ClosureReasonstatic ClosureReason
ClosureReason. holder_force_closed()
Utility method to constructs a new HolderForceClosed-variant ClosureReasonstatic ClosureReason
ClosureReason. outdated_channel_manager()
Utility method to constructs a new OutdatedChannelManager-variant ClosureReasonstatic ClosureReason
ClosureReason. processing_error(String err)
Utility method to constructs a new ProcessingError-variant ClosureReasonMethods in org.ldk.structs with parameters of type ClosureReason Modifier and Type Method Description static Event
Event. channel_closed(byte[] channel_id, UInt128 user_channel_id, ClosureReason reason)
Utility method to constructs a new ChannelClosed-variant Eventboolean
ClosureReason. eq(ClosureReason b)
Checks if two ClosureReasons contain equal inner contents.static Option_ClosureReasonZ
Option_ClosureReasonZ. some(ClosureReason o)
Constructs a new COption_ClosureReasonZ containing a crate::lightning::events::ClosureReason
-