Expose PeerHandleError::no_connection_possible
[rust-lightning] / lightning / src / ln / peer_handler.rs
index e6160b0e5ec597d76027dc9b61a54ae5d0315fff..009fa73f939e21ace76acb54acd205e56b2fa70a 100644 (file)
@@ -86,7 +86,7 @@ pub trait SocketDescriptor : cmp::Eq + hash::Hash + Clone {
 pub struct PeerHandleError {
        /// Used to indicate that we probably can't make any future connections to this peer, implying
        /// we should go ahead and force-close any channels we have with it.
-       no_connection_possible: bool,
+       pub no_connection_possible: bool,
 }
 impl fmt::Debug for PeerHandleError {
        fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> {