Struct reqwest_eventsource::retry::Never
source · pub struct Never;
Expand description
A RetryPolicy
which never retries
Trait Implementations§
source§impl RetryPolicy for Never
impl RetryPolicy for Never
source§fn retry(
&self,
_error: &Error,
_last_retry: Option<(usize, Duration)>
) -> Option<Duration>
fn retry( &self, _error: &Error, _last_retry: Option<(usize, Duration)> ) -> Option<Duration>
Submit a new retry delay based on the
Error
, last retry number and duration, if
available. A policy may also return None
if it does not want to retrysource§fn set_reconnection_time(&mut self, _duration: Duration)
fn set_reconnection_time(&mut self, _duration: Duration)
Set a new reconnection time if received from an
Event
impl Copy for Never
Auto Trait Implementations§
impl Freeze for Never
impl RefUnwindSafe for Never
impl Send for Never
impl Sync for Never
impl Unpin for Never
impl UnwindSafe for Never
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