pub struct HookQueueConfig {
pub capacity: NonZeroUsize,
pub terminal_reserve: NonZeroUsize,
}Expand description
Describes the hook queue config portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Fields§
§capacity: NonZeroUsizeTotal subscriber queue capacity. This bounds buffered event frames for a live subscriber.
terminal_reserve: NonZeroUsizeQueue slots reserved for terminal frames. This keeps important terminal events available even when non-terminal frames overflow.
Implementations§
Source§impl HookQueueConfig
impl HookQueueConfig
Sourcepub fn new(capacity: usize, terminal_reserve: usize) -> Self
pub fn new(capacity: usize, terminal_reserve: usize) -> Self
Creates a new package::hooks value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
§Panics
Panics if constructor invariants fail, such as invalid identifier
text or constructor-specific bounds. Use a fallible constructor such as
try_new when one is available for untrusted input.
Trait Implementations§
Source§impl Clone for HookQueueConfig
impl Clone for HookQueueConfig
Source§fn clone(&self) -> HookQueueConfig
fn clone(&self) -> HookQueueConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HookQueueConfig
impl Debug for HookQueueConfig
Source§impl<'de> Deserialize<'de> for HookQueueConfig
impl<'de> Deserialize<'de> for HookQueueConfig
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>,
impl Eq for HookQueueConfig
Source§impl PartialEq for HookQueueConfig
impl PartialEq for HookQueueConfig
Source§fn eq(&self, other: &HookQueueConfig) -> bool
fn eq(&self, other: &HookQueueConfig) -> bool
self and other values to be equal, and is used by ==.