pub struct HyperclockConfig {
pub resolution: ClockResolution,
pub phases: Vec<PhaseConfig>,
pub gong_config: GongConfig,
}
Expand description
The top-level configuration for the HyperclockEngine
.
This struct is the entry point for all engine settings. It is typically loaded from a TOML or JSON file at application startup.
Fields§
§resolution: ClockResolution
The tick speed of the master SystemClock
.
phases: Vec<PhaseConfig>
Defines the sequence of phases to execute on each tick. The engine will iterate through this vector in order.
gong_config: GongConfig
Configuration for calendar-based “Gong” events.
Trait Implementations§
Source§impl Clone for HyperclockConfig
impl Clone for HyperclockConfig
Source§fn clone(&self) -> HyperclockConfig
fn clone(&self) -> HyperclockConfig
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 HyperclockConfig
impl Debug for HyperclockConfig
Source§impl Default for HyperclockConfig
impl Default for HyperclockConfig
Source§impl<'de> Deserialize<'de> for HyperclockConfig
impl<'de> Deserialize<'de> for HyperclockConfig
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 HyperclockConfig
impl RefUnwindSafe for HyperclockConfig
impl Send for HyperclockConfig
impl Sync for HyperclockConfig
impl Unpin for HyperclockConfig
impl UnwindSafe for HyperclockConfig
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