pub struct ReconnectError {
pub url: String,
pub attempts: u32,
pub source: Option<Box<dyn Error + Send + Sync>>,
}Expand description
Bounded reconnect attempts exhausted.
Fields§
§url: StringDaemon URL.
attempts: u32Attempts made.
source: Option<Box<dyn Error + Send + Sync>>Last cause.
Implementations§
Trait Implementations§
Source§impl Debug for ReconnectError
impl Debug for ReconnectError
Source§impl Display for ReconnectError
impl Display for ReconnectError
Source§impl Error for ReconnectError
impl Error for ReconnectError
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 From<ReconnectError> for Error
impl From<ReconnectError> for Error
Source§fn from(source: ReconnectError) -> Self
fn from(source: ReconnectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ReconnectError
impl !UnwindSafe for ReconnectError
impl Freeze for ReconnectError
impl Send for ReconnectError
impl Sync for ReconnectError
impl Unpin for ReconnectError
impl UnsafeUnpin for ReconnectError
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