Struct cyfs_lib::RequestorWithRetry
source · pub struct RequestorWithRetry { /* private fields */ }
Implementations
sourceimpl RequestorWithRetry
impl RequestorWithRetry
pub fn new(
requestor: Box<dyn HttpRequestor>,
retry_count: u32,
retry_strategy: RequestorRetryStrategy,
timeout: Option<Duration>
) -> Self
Trait Implementations
sourceimpl Clone for RequestorWithRetry
impl Clone for RequestorWithRetry
sourceimpl HttpRequestor for RequestorWithRetry
impl HttpRequestor for RequestorWithRetry
fn request_ext<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: &'life1 mut Option<Request>,
conn_info: Option<&'life2 mut HttpRequestConnectionInfo>
) -> Pin<Box<dyn Future<Output = BuckyResult<Response>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn remote_addr(&self) -> String
fn remote_device(&self) -> Option<DeviceId>
fn clone_requestor(&self) -> Box<dyn HttpRequestor>
fn request<'life0, 'async_trait>(
&'life0 self,
req: Request
) -> Pin<Box<dyn Future<Output = BuckyResult<Response>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn request_with_conn_info<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request,
conn_info: Option<&'life1 mut HttpRequestConnectionInfo>
) -> Pin<Box<dyn Future<Output = BuckyResult<Response>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn request_with_conn_info_timeout<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request,
conn_info: Option<&'life1 mut HttpRequestConnectionInfo>,
dur: Duration
) -> Pin<Box<dyn Future<Output = BuckyResult<Response>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn request_timeout<'life0, 'async_trait>(
&'life0 self,
req: Request,
dur: Duration
) -> Pin<Box<dyn Future<Output = BuckyResult<Response>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn request_ext_timeout<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: &'life1 mut Option<Request>,
dur: Duration,
conn_info: Option<&'life2 mut HttpRequestConnectionInfo>
) -> Pin<Box<dyn Future<Output = BuckyResult<Response>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for RequestorWithRetry
impl Send for RequestorWithRetry
impl Sync for RequestorWithRetry
impl Unpin for RequestorWithRetry
impl !UnwindSafe for RequestorWithRetry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more