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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)