Skip to main content

RetryObserver

Trait RetryObserver 

Source
pub trait RetryObserver: Send + Sync {
    // Required method
    fn on_retry_event(&self, event: ProviderRetryEvent);
}
Expand description

Synchronous, queue-free observer installed before begin_turn.

Implementations must not block or re-enter the session. Panics propagate, just like loop observers; delivery cannot be guaranteed if observers panic/block. Dropping a future or turn is not explicit cancellation and does not promise a terminal observation. Implementations should rate-limit Scheduled snapshots per logical turn, retaining exact accounting and unsuppressed terminal events.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§