Enum libp2p_core::nodes::collection::InterruptError
source · pub enum InterruptError {
ReachAttemptNotFound,
AlreadyReached,
}Expand description
Reach attempt interrupt errors.
Variants
ReachAttemptNotFound
An invalid reach attempt has been used to try to interrupt. The task entry is vacant; it needs to be added first via add_reach_attempt (with the TaskState set to Pending) before we try to connect.
AlreadyReached
The task has already connected to the node; interrupting a reach attempt is thus redundant as it has already completed. Thus, the reach attempt that has tried to be used is no longer valid, since already reached.
Trait Implementations
sourceimpl Debug for InterruptError
impl Debug for InterruptError
sourceimpl Display for InterruptError
impl Display for InterruptError
sourceimpl Error for InterruptError
impl Error for InterruptError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for InterruptError
impl Send for InterruptError
impl Sync for InterruptError
impl Unpin for InterruptError
impl UnwindSafe for InterruptError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more