pub struct Never {}Expand description
A strategy that never triggers a restart.
Trait Implementations§
Source§impl Restarter for Never
impl Restarter for Never
Source§fn restarts_in(&self) -> usize
fn restarts_in(&self) -> usize
Returns 0, but should_restart will always be false, so this value is not
practically used to count down to a restart.
Source§fn increment_restarts_in(&mut self)
fn increment_restarts_in(&mut self)
Does nothing, as no restarts are pending.
Source§fn num_restarts(&self) -> usize
fn num_restarts(&self) -> usize
Always returns 0, as no restarts are ever performed.
Source§fn should_restart(&mut self) -> bool
fn should_restart(&mut self) -> bool
Always returns false, indicating that a restart should never occur.
impl Eq for Never
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more