pub struct RegionId(/* private fields */);Expand description
A unique identifier for a region in the runtime.
Regions form a tree structure and own all work spawned within them.
Implementations§
Source§impl RegionId
impl RegionId
Sourcepub const fn from_arena(index: ArenaIndex) -> RegionId
pub const fn from_arena(index: ArenaIndex) -> RegionId
Creates a new region ID from an arena index (internal use).
Sourcepub const fn arena_index(self) -> ArenaIndex
pub const fn arena_index(self) -> ArenaIndex
Returns the underlying arena index (internal use).
Sourcepub fn new_ephemeral() -> RegionId
pub fn new_ephemeral() -> RegionId
Creates a new ephemeral region ID for request-scoped contexts created outside the runtime scheduler.
This is intended for production request handling that needs unique identifiers without full runtime region registration.
Trait Implementations§
Source§impl Ord for RegionId
impl Ord for RegionId
Source§impl PartialOrd for RegionId
impl PartialOrd for RegionId
impl Copy for RegionId
impl Eq for RegionId
impl StructuralPartialEq for RegionId
Auto Trait Implementations§
impl Freeze for RegionId
impl RefUnwindSafe for RegionId
impl Send for RegionId
impl Sync for RegionId
impl Unpin for RegionId
impl UnwindSafe for RegionId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).