Skip to main content

ParticipantSlotAllocatorProof

Trait ParticipantSlotAllocatorProof 

Source
pub trait ParticipantSlotAllocatorProof {
    // Required methods
    fn conversation_id(&self) -> ConversationId;
    fn participant_index(&self) -> ParticipantIndex;
    fn identity_limit(&self) -> u64;
}
Expand description

Consuming allocator proof for one permanent participant reservation slot.

Implementations are supplied by the serialized identity allocator; the proof’s existence attests that the returned slot was reserved exactly once.

Required Methods§

Source

fn conversation_id(&self) -> ConversationId

Conversation whose identity allocator produced the slot.

Source

fn participant_index(&self) -> ParticipantIndex

Permanent participant index, also the participant id in protocol v1.

Source

fn identity_limit(&self) -> u64

Configured half-open identity limit I used by the allocation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§