pub enum ClockResolution {
Ultra,
High,
Medium,
Low,
Custom {
ticks_per_second: u64,
},
}Expand description
Defines the operational speed of the SystemClock.
Variants§
Ultra
~120 ticks per second. Ideal for high-speed, competitive games.
High
~60 ticks per second. Suitable for real-time applications.
Medium
~30 ticks per second. Suitable for general purpose simulations.
Low
~1 tick per second. Suitable for strategic or turn-based logic.
Custom
A user-defined speed in ticks per second.
Trait Implementations§
Source§impl Clone for ClockResolution
impl Clone for ClockResolution
Source§fn clone(&self) -> ClockResolution
fn clone(&self) -> ClockResolution
Returns a duplicate 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 ClockResolution
impl Debug for ClockResolution
Source§impl<'de> Deserialize<'de> for ClockResolution
impl<'de> Deserialize<'de> for ClockResolution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClockResolution
impl RefUnwindSafe for ClockResolution
impl Send for ClockResolution
impl Sync for ClockResolution
impl Unpin for ClockResolution
impl UnwindSafe for ClockResolution
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