pub enum DiscoveryError {
NoLocalInterfaces,
AllBootstrapsFailed,
DiscoveryTimeout,
InsufficientCandidates {
found: usize,
required: usize,
},
NetworkError(String),
ConfigurationError(String),
InternalError(String),
}Expand description
Errors that can occur during discovery
Variants§
NoLocalInterfaces
No local interfaces found
AllBootstrapsFailed
All bootstrap node queries failed
DiscoveryTimeout
Discovery timeout exceeded
InsufficientCandidates
Insufficient candidates discovered
NetworkError(String)
Platform-specific network error
ConfigurationError(String)
Configuration error
InternalError(String)
Internal system error
Trait Implementations§
Source§impl Clone for DiscoveryError
impl Clone for DiscoveryError
Source§fn clone(&self) -> DiscoveryError
fn clone(&self) -> DiscoveryError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiscoveryError
impl Debug for DiscoveryError
Source§impl Display for DiscoveryError
impl Display for DiscoveryError
Source§impl Error for DiscoveryError
impl Error for DiscoveryError
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for DiscoveryError
impl PartialEq for DiscoveryError
impl Eq for DiscoveryError
impl StructuralPartialEq for DiscoveryError
Auto Trait Implementations§
impl Freeze for DiscoveryError
impl RefUnwindSafe for DiscoveryError
impl Send for DiscoveryError
impl Sync for DiscoveryError
impl Unpin for DiscoveryError
impl UnwindSafe for DiscoveryError
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