pub struct Config {
pub max_topics: u32,
pub block_count: u32,
pub block_size: u32,
pub ring_depth: u32,
pub heartbeat_interval: Duration,
pub stale_timeout: Duration,
}Expand description
Configuration for pool-backed O(1) pub/sub.
Fields§
§max_topics: u32Maximum number of topics (default: 16).
block_count: u32Number of blocks in the shared pool (default: 256).
block_size: u32Size of each block in bytes (default: 65536 = 64 KiB).
Usable data capacity is block_size - 8 (8 bytes for refcount header).
ring_depth: u32Ring depth per topic – how many published samples the ring remembers before overwriting (default: 8). Must be a power of 2.
heartbeat_interval: DurationHeartbeat write interval (default: 100 ms).
stale_timeout: DurationPublisher considered dead after this duration without heartbeat (default: 5 s).
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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