Skip to main content

SubscriptionCapacity

Trait SubscriptionCapacity 

Source
pub trait SubscriptionCapacity: Capacity {
    const PATHS: usize;
}
Expand description

A subscription table, which has one more number the node states: how many paths one subscription may carry.

§11.1.4.4’s SubscribePathsSupported, constrained to 3 to 10000. It is separate from Capacity because it is the only table with an inner capacity the specification asks about, and a constant on Capacity that every other table answered zero to would be a number that means nothing four times over.

Required Associated Constants§

Source

const PATHS: usize

How many attribute or event paths one subscription can carry.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<C: Config, const N: usize, const P: usize> SubscriptionCapacity for SubscriptionTable<C, N, P>

Source§

const PATHS: usize = P