pub struct ServerRetryHint {
pub retry_after: Option<Duration>,
}Expand description
Hint from the server about when to retry.
When the server provides a retry-after header, this hint overrides the
exponential backoff calculation for the next retry attempt.
§Example
use adk_model::retry::ServerRetryHint;
use std::time::Duration;
let hint = ServerRetryHint { retry_after: Some(Duration::from_secs(30)) };
assert_eq!(hint.retry_after, Some(Duration::from_secs(30)));Fields§
§retry_after: Option<Duration>Server-suggested delay before retrying.
Trait Implementations§
Source§impl Clone for ServerRetryHint
impl Clone for ServerRetryHint
Source§impl Debug for ServerRetryHint
impl Debug for ServerRetryHint
Auto Trait Implementations§
impl Freeze for ServerRetryHint
impl RefUnwindSafe for ServerRetryHint
impl Send for ServerRetryHint
impl Sync for ServerRetryHint
impl Unpin for ServerRetryHint
impl UnsafeUnpin for ServerRetryHint
impl UnwindSafe for ServerRetryHint
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