pub trait Backoff:
DynClone
+ Debug
+ Sync
+ Send {
// Required method
fn time(
&self,
request: &mut HttpRequestParts<'_>,
opts: BackoffOptions<'_>,
) -> GotBackoffDuration;
}
Expand description
退避时长获取接口
Required Methods§
Sourcefn time(
&self,
request: &mut HttpRequestParts<'_>,
opts: BackoffOptions<'_>,
) -> GotBackoffDuration
fn time( &self, request: &mut HttpRequestParts<'_>, opts: BackoffOptions<'_>, ) -> GotBackoffDuration
获取退避时长