pub struct OrdinaryProjectionLimits { /* private fields */ }Expand description
Signed closure limits used by one ordinary fixed-point projection.
Implementations§
Source§impl OrdinaryProjectionLimits
impl OrdinaryProjectionLimits
Sourcepub const fn new(
marker_max: ResourceVector,
mandatory_bound: ResourceVector,
full_recovery_claim: ResourceVector,
) -> Self
pub const fn new( marker_max: ResourceVector, mandatory_bound: ResourceVector, full_recovery_claim: ResourceVector, ) -> Self
Captures the configured identity, marker, mandatory, and recovery bounds.
Sourcepub const fn with_capacity_target(self, capacity_target: ResourceVector) -> Self
pub const fn with_capacity_target(self, capacity_target: ResourceVector) -> Self
Names the retained capacity the operator configures now.
A conversation’s closure accounting carries the capacity it was
created with, and a restore keeps it. When the configured capacity is
smaller, an ordinary admission searches its floor against the smaller
one and the resulting accounting adopts it: the admission compacts
whatever lies above it, every overtaken member is owed its
HistoryCompacted marker (contract R-B5, R-C4), and nothing is
refused for the shrink. A larger configured capacity is not adopted:
growing a conversation’s capacity is not this method’s to decide.
Sourcepub const fn marker_max(self) -> ResourceVector
pub const fn marker_max(self) -> ResourceVector
Returns the generated maximum marker charge.
Sourcepub const fn mandatory_bound(self) -> ResourceVector
pub const fn mandatory_bound(self) -> ResourceVector
Returns generated mandatory transaction envelope Q.
Sourcepub const fn full_recovery_claim(self) -> ResourceVector
pub const fn full_recovery_claim(self) -> ResourceVector
Returns full transferable recovery occupancy K.