Enum smolscale::immortal::RespawnStrategy
source · pub enum RespawnStrategy {
Immediate,
FixedDelay(Duration),
JitterDelay(Duration, Duration),
}
Variants§
Trait Implementations§
source§impl Clone for RespawnStrategy
impl Clone for RespawnStrategy
source§fn clone(&self) -> RespawnStrategy
fn clone(&self) -> RespawnStrategy
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 moresource§impl Debug for RespawnStrategy
impl Debug for RespawnStrategy
source§impl PartialEq for RespawnStrategy
impl PartialEq for RespawnStrategy
source§fn eq(&self, other: &RespawnStrategy) -> bool
fn eq(&self, other: &RespawnStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RespawnStrategy
impl Eq for RespawnStrategy
impl StructuralEq for RespawnStrategy
impl StructuralPartialEq for RespawnStrategy
Auto Trait Implementations§
impl RefUnwindSafe for RespawnStrategy
impl Send for RespawnStrategy
impl Sync for RespawnStrategy
impl Unpin for RespawnStrategy
impl UnwindSafe for RespawnStrategy
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more