pub struct CanonConfig {
pub block_hash_interval: u64,
pub tick_hash_interval: u64,
pub max_traversal_depth: u32,
pub scope_budget_default: u32,
pub token_refill_per_tick: u32,
pub max_tokens: u32,
pub max_trigger_depth: u32,
pub max_triggers_per_event: u32,
pub max_triggers_per_tick: u32,
}Expand description
Canon event pipeline parameters.
Fields§
§block_hash_interval: u64Ticks between block hash checkpoints. Default: 100.
tick_hash_interval: u64Ticks between tick-level hash accumulation. Default: 10.
max_traversal_depth: u32Maximum BFS traversal depth for graph queries. Default: 10.
scope_budget_default: u32Default scope token budget. Default: 100.
token_refill_per_tick: u32Tokens refilled per tick. Default: 5.
max_tokens: u32Maximum token cap. Default: 50.
max_trigger_depth: u32Maximum trigger chain depth (prevents infinite loops). Default: 3.
max_triggers_per_event: u32Maximum triggers fired per single canon event. Default: 5.
max_triggers_per_tick: u32Maximum total triggers fired per tick across all events. Default: 50.
Trait Implementations§
Source§impl Clone for CanonConfig
impl Clone for CanonConfig
Source§fn clone(&self) -> CanonConfig
fn clone(&self) -> CanonConfig
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 CanonConfig
impl Debug for CanonConfig
Source§impl Default for CanonConfig
impl Default for CanonConfig
Source§impl<'de> Deserialize<'de> for CanonConfig
impl<'de> Deserialize<'de> for CanonConfig
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 CanonConfig
impl RefUnwindSafe for CanonConfig
impl Send for CanonConfig
impl Sync for CanonConfig
impl Unpin for CanonConfig
impl UnsafeUnpin for CanonConfig
impl UnwindSafe for CanonConfig
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