Skip to main content

Capacity

Trait Capacity 

Source
pub trait Capacity {
    const TOTAL: usize;
    const PER_FABRIC: usize;
}
Expand description

A table whose capacity the node states on the wire.

§11.1.4.4 requires CapabilityMinima to report “the actual” number a node supports, and §11.18.5.3, §9.10.6.7, §11.2.6.2 and §11.2.6.3 do the same for their clusters. Only the table knows that number, so the table is what publishes it — never Config, which cannot size anything, and never a value the integrator types beside it.

Implemented by FabricTable, SessionTable, SubscriptionTable, Acl and GroupKeys.

Required Associated Constants§

Source

const TOTAL: usize

Total slots, across every fabric.

Source

const PER_FABRIC: usize

What one fabric is guaranteed — the number the specification calls “actual”.

A table with no per-fabric quota reports its total.

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 K: usize, const M: usize> Capacity for GroupKeys<C, K, M>

Available on crate feature rustcrypto only.
Source§

const TOTAL: usize = K

Source§

const PER_FABRIC: usize = C::GROUP_KEYS_PER_FABRIC

Source§

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

Source§

const TOTAL: usize = N

Source§

const PER_FABRIC: usize = C::SUBSCRIPTIONS_PER_FABRIC

Source§

impl<C: Config, const N: usize, const S: usize, const T: usize> Capacity for Acl<C, N, S, T>

Source§

const TOTAL: usize = N

Source§

const PER_FABRIC: usize = C::ACL_ENTRIES_PER_FABRIC

Source§

impl<C: Config, const N: usize> Capacity for ExchangeTable<C, N>

Source§

impl<C: Config, const N: usize> Capacity for FabricTable<C, N>

Available on crate feature rustcrypto only.
Source§

impl<C: Config, const N: usize> Capacity for SessionTable<C, N>

Available on crate feature rustcrypto only.