pub struct NoBackoff;Expand description
Never retries anything.
The second implementation, and a configuration a host really runs: put a retrying LLM gateway in front of the engine and the engine’s own ladder stops being resilience and starts being a minute of invisible latency on top of the gateway’s. An interactive deployment that would rather show the error than sit silently for a minute wants the same thing.
Trait Implementations§
Source§impl BackoffPolicy for NoBackoff
impl BackoffPolicy for NoBackoff
fn after_failure(&self, _attempt: &FailedAttempt) -> Backoff
Auto Trait Implementations§
impl Forget for NoBackoff
impl Freeze for NoBackoff
impl Move for NoBackoff
impl RefUnwindSafe for NoBackoff
impl Send for NoBackoff
impl Sync for NoBackoff
impl Unpin for NoBackoff
impl UnsafeUnpin for NoBackoff
impl UnwindSafe for NoBackoff
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