ProviderHandle.get

void * get(Tag)() if (is(Tag == struct)) const @system nothrow @nogc

Borrows the native context after checking its provenance.

Parameters

Tagprovider-defined identity type.

Returns

the context, or null for an empty/unrelated lease.

Safety: the pointer is borrowed for this lease's lifetime. Only the owning provider may interpret it; do not free it or retain it beyond a live lease.