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§
Sourceconst PER_FABRIC: usize
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.
impl<C: Config, const K: usize, const M: usize> Capacity for GroupKeys<C, K, M>
Available on crate feature
rustcrypto only.