pub struct PeerSyncHealth {
pub consecutive_failures: u64,
pub secs_since_last_attempt: Option<u64>,
}Expand description
Durable per-(host, topic) GASP sync health (bsv-low#302) — the input to
the pure quarantine rule crate::gasp::peer_sync_quarantined.
Fields§
§consecutive_failures: u64Consecutive sync attempts that ALL failed (timeout counts as a failure). Reset to 0 by any successful sync.
secs_since_last_attempt: Option<u64>Seconds since the last recorded sync ATTEMPT (success or failure).
None = never attempted / no health tracked — never quarantined.
Trait Implementations§
Source§impl Clone for PeerSyncHealth
impl Clone for PeerSyncHealth
impl Copy for PeerSyncHealth
Source§impl Debug for PeerSyncHealth
impl Debug for PeerSyncHealth
Source§impl Default for PeerSyncHealth
impl Default for PeerSyncHealth
impl Eq for PeerSyncHealth
Source§impl PartialEq for PeerSyncHealth
impl PartialEq for PeerSyncHealth
impl StructuralPartialEq for PeerSyncHealth
Auto Trait Implementations§
impl Freeze for PeerSyncHealth
impl RefUnwindSafe for PeerSyncHealth
impl Send for PeerSyncHealth
impl Sync for PeerSyncHealth
impl Unpin for PeerSyncHealth
impl UnsafeUnpin for PeerSyncHealth
impl UnwindSafe for PeerSyncHealth
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