pub struct HeartbeatError {
pub last_heartbeat: Option<Instant>,
pub state: String,
pub message: String,
}Expand description
Heartbeat tracking failure (daemon not alive within timeout).
Fields§
§last_heartbeat: Option<Instant>Instant of last received heartbeat (None if no heartbeat ever received).
state: StringDaemon state at the time of the failure.
message: StringHuman-readable error message.
Implementations§
Trait Implementations§
Source§impl Debug for HeartbeatError
impl Debug for HeartbeatError
Source§impl Display for HeartbeatError
impl Display for HeartbeatError
Source§impl Error for HeartbeatError
impl Error for HeartbeatError
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 From<HeartbeatError> for Error
impl From<HeartbeatError> for Error
Source§fn from(source: HeartbeatError) -> Self
fn from(source: HeartbeatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HeartbeatError
impl RefUnwindSafe for HeartbeatError
impl Send for HeartbeatError
impl Sync for HeartbeatError
impl Unpin for HeartbeatError
impl UnsafeUnpin for HeartbeatError
impl UnwindSafe for HeartbeatError
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