pub struct PeerHandleError {
pub no_connection_possible: bool,
}Expand description
Error for PeerManager errors. If you get one of these, you must disconnect the socket and generate no further read_event/write_buffer_space_avail/socket_disconnected calls for the descriptor.
Fields§
§no_connection_possible: boolUsed to indicate that we probably can’t make any future connections to this peer (e.g. because we required features that our peer was missing, or vice versa).
While LDK’s ChannelManager will not do it automatically, you likely wish to force-close
any channels with this peer or check for new versions of LDK.
Trait Implementations§
Source§impl Clone for PeerHandleError
impl Clone for PeerHandleError
Source§fn clone(&self) -> PeerHandleError
fn clone(&self) -> PeerHandleError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeerHandleError
impl Debug for PeerHandleError
Source§impl Display for PeerHandleError
impl Display for PeerHandleError
Source§impl Error for PeerHandleError
Available on crate feature std only.
impl Error for PeerHandleError
Available on crate feature
std only.Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Auto Trait Implementations§
impl Freeze for PeerHandleError
impl RefUnwindSafe for PeerHandleError
impl Send for PeerHandleError
impl Sync for PeerHandleError
impl Unpin for PeerHandleError
impl UnwindSafe for PeerHandleError
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