pub struct AllocatedParticipantSlot<P> { /* private fields */ }Expand description
Opaque, checked participant-slot allocation consumed by enrollment.
Implementations§
Source§impl<P: ParticipantSlotAllocatorProof> AllocatedParticipantSlot<P>
impl<P: ParticipantSlotAllocatorProof> AllocatedParticipantSlot<P>
Sourcepub fn from_allocator(
allocator_proof: P,
) -> Result<Self, ParticipantSlotAllocationError>
pub fn from_allocator( allocator_proof: P, ) -> Result<Self, ParticipantSlotAllocationError>
Validates and binds one consuming-layer allocator proof.
§Errors
Returns ParticipantSlotAllocationError::IdentityLimit when the
allocator reports the exhausted sentinel or an out-of-range index.
Sourcepub const fn conversation_id(&self) -> ConversationId
pub const fn conversation_id(&self) -> ConversationId
Returns the allocator-bound conversation.
Sourcepub const fn participant_id(&self) -> ParticipantId
pub const fn participant_id(&self) -> ParticipantId
Returns the permanent participant id/index.
Sourcepub const fn identity_limit(&self) -> u64
pub const fn identity_limit(&self) -> u64
Returns the checked half-open identity domain used by the allocator.
Trait Implementations§
Source§impl<P: Clone> Clone for AllocatedParticipantSlot<P>
impl<P: Clone> Clone for AllocatedParticipantSlot<P>
Source§fn clone(&self) -> AllocatedParticipantSlot<P>
fn clone(&self) -> AllocatedParticipantSlot<P>
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 moreSource§impl<P: Debug> Debug for AllocatedParticipantSlot<P>
impl<P: Debug> Debug for AllocatedParticipantSlot<P>
impl<P: Eq> Eq for AllocatedParticipantSlot<P>
Source§impl<P: PartialEq> PartialEq for AllocatedParticipantSlot<P>
impl<P: PartialEq> PartialEq for AllocatedParticipantSlot<P>
impl<P: PartialEq> StructuralPartialEq for AllocatedParticipantSlot<P>
Auto Trait Implementations§
impl<P> Freeze for AllocatedParticipantSlot<P>where
P: Freeze,
impl<P> RefUnwindSafe for AllocatedParticipantSlot<P>where
P: RefUnwindSafe,
impl<P> Send for AllocatedParticipantSlot<P>where
P: Send,
impl<P> Sync for AllocatedParticipantSlot<P>where
P: Sync,
impl<P> Unpin for AllocatedParticipantSlot<P>where
P: Unpin,
impl<P> UnsafeUnpin for AllocatedParticipantSlot<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for AllocatedParticipantSlot<P>where
P: UnwindSafe,
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