pub enum Limit {
None,
Amount(u64),
}Variants§
Trait Implementations§
Source§impl From<u64> for Limit
Note: 0 maps to Limit::None (unlimited), not zero restarts.
If you want zero restarts (i.e., never restart), use Supervision::Stop instead.
impl From<u64> for Limit
Note: 0 maps to Limit::None (unlimited), not zero restarts.
If you want zero restarts (i.e., never restart), use Supervision::Stop instead.
impl Copy for Limit
Auto Trait Implementations§
impl Freeze for Limit
impl RefUnwindSafe for Limit
impl Send for Limit
impl Sync for Limit
impl Unpin for Limit
impl UnsafeUnpin for Limit
impl UnwindSafe for Limit
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