Struct fluvio_future::doomsday::DoomsdayTimer
source · pub struct DoomsdayTimer { /* private fields */ }Expand description
DoomsdayTimer will configurably panic or exit if it is not
reset() at least every duration
Implementations§
source§impl DoomsdayTimer
impl DoomsdayTimer
sourcepub fn spawn(
duration: Duration,
exit_on_explode: bool,
) -> (Self, JoinHandle<()>)
pub fn spawn( duration: Duration, exit_on_explode: bool, ) -> (Self, JoinHandle<()>)
Spawn a new doomsday timer.
If exit_on_explode is true, it will terminate process with exit(1) if it explodes.
Otherwise it will call panic(). Note that awaiting on the jh will panic if the DoomsdayTimer panicked
Trait Implementations§
source§impl Clone for DoomsdayTimer
impl Clone for DoomsdayTimer
source§fn clone(&self) -> DoomsdayTimer
fn clone(&self) -> DoomsdayTimer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DoomsdayTimer
impl !RefUnwindSafe for DoomsdayTimer
impl Send for DoomsdayTimer
impl Sync for DoomsdayTimer
impl Unpin for DoomsdayTimer
impl !UnwindSafe for DoomsdayTimer
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)