pub struct EnrollmentCapacityCounters { /* private fields */ }Expand description
All seven stage-8 counters for a fresh enrollment.
Only five can refuse. The two per-participant counters use
FreshParticipantCapacityCounter, proving their occupancy is zero and
their limits nonzero before identity mint.
Implementations§
Source§impl EnrollmentCapacityCounters
impl EnrollmentCapacityCounters
Sourcepub const fn new(
identity_server: CapacityCounter,
identity_conversation: CapacityCounter,
live_receipt_server: CapacityCounter,
live_receipt_participant: FreshParticipantCapacityCounter,
provenance_server: CapacityCounter,
provenance_conversation: CapacityCounter,
provenance_participant: FreshParticipantCapacityCounter,
) -> Self
pub const fn new( identity_server: CapacityCounter, identity_conversation: CapacityCounter, live_receipt_server: CapacityCounter, live_receipt_participant: FreshParticipantCapacityCounter, provenance_server: CapacityCounter, provenance_conversation: CapacityCounter, provenance_participant: FreshParticipantCapacityCounter, ) -> Self
Creates the complete reachable enrollment counter snapshot.
Sourcepub const fn identity_server(self) -> CapacityCounter
pub const fn identity_server(self) -> CapacityCounter
Returns server-wide identity occupancy.
Sourcepub const fn identity_conversation(self) -> CapacityCounter
pub const fn identity_conversation(self) -> CapacityCounter
Returns conversation identity occupancy.
Sourcepub const fn live_receipt_server(self) -> CapacityCounter
pub const fn live_receipt_server(self) -> CapacityCounter
Returns server-wide live-receipt occupancy.
Sourcepub const fn live_receipt_participant(self) -> FreshParticipantCapacityCounter
pub const fn live_receipt_participant(self) -> FreshParticipantCapacityCounter
Returns the provably empty participant live-receipt capacity.
Sourcepub const fn provenance_server(self) -> CapacityCounter
pub const fn provenance_server(self) -> CapacityCounter
Returns server-wide provenance occupancy.
Sourcepub const fn provenance_conversation(self) -> CapacityCounter
pub const fn provenance_conversation(self) -> CapacityCounter
Returns conversation provenance occupancy.
Sourcepub const fn provenance_participant(self) -> FreshParticipantCapacityCounter
pub const fn provenance_participant(self) -> FreshParticipantCapacityCounter
Returns the provably empty participant provenance capacity.
Trait Implementations§
Source§impl Clone for EnrollmentCapacityCounters
impl Clone for EnrollmentCapacityCounters
Source§fn clone(&self) -> EnrollmentCapacityCounters
fn clone(&self) -> EnrollmentCapacityCounters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EnrollmentCapacityCounters
Source§impl Debug for EnrollmentCapacityCounters
impl Debug for EnrollmentCapacityCounters
impl Eq for EnrollmentCapacityCounters
impl StructuralPartialEq for EnrollmentCapacityCounters
Auto Trait Implementations§
impl Freeze for EnrollmentCapacityCounters
impl RefUnwindSafe for EnrollmentCapacityCounters
impl Send for EnrollmentCapacityCounters
impl Sync for EnrollmentCapacityCounters
impl Unpin for EnrollmentCapacityCounters
impl UnsafeUnpin for EnrollmentCapacityCounters
impl UnwindSafe for EnrollmentCapacityCounters
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