pub enum SeedsError {
NoFreshSeeds,
Io(Error),
Parse(String),
Http(String),
}Expand description
Error type for seeds providers.
Variants§
NoFreshSeeds
The provider has no fresh data: the gossip task should
retry on the next interval. Mirrors the reference engine’s
DN_NOOPS return.
Io(Error)
I/O error.
Parse(String)
Parse error.
Http(String)
Endpoint returned an HTTP error.
Trait Implementations§
Source§impl Debug for SeedsError
impl Debug for SeedsError
Source§impl Display for SeedsError
impl Display for SeedsError
Source§impl Error for SeedsError
impl Error for SeedsError
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()
Auto Trait Implementations§
impl Freeze for SeedsError
impl !RefUnwindSafe for SeedsError
impl Send for SeedsError
impl Sync for SeedsError
impl Unpin for SeedsError
impl UnsafeUnpin for SeedsError
impl !UnwindSafe for SeedsError
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