mz_adapter_types::connection

Type Alias ConnectionId

Source
pub type ConnectionId = IdHandle<ConnectionIdType, IdAllocatorInnerBitSet>;
Expand description

An abstraction allowing us to name different connections.

Aliased Type§

enum ConnectionId {
    Static(u32),
    Dynamic(Arc<IdHandleInner<u32, IdAllocatorInnerBitSet>>),
}

Variants§

§

Static(u32)

An ID “allocated” at compile time.

Note: It is entirely up to the caller to make sure the provided ID is not used by a dynamic ID allocator.

§

Dynamic(Arc<IdHandleInner<u32, IdAllocatorInnerBitSet>>)

An ID allocated at runtime, gets freed once all handles have been dropped.