struct RoomRuntimeAllocator {
next_room_instance_id: u64,
next_router_id: u64,
}Expand description
Monotonic placement counters assigned by the current process.
Room instance ids and router ids are allocated under one lock so every new room receives one coherent runtime placement. The counters are not a distributed identity source and must not leak into the Odoo-facing room contract.
Fields§
§next_room_instance_id: u64§next_router_id: u64Next router id to allocate for room-local topology.
Room creation consumes one primary router id. Dynamic spillover placement consumes additional router ids when sessions join.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoomRuntimeAllocator
impl RefUnwindSafe for RoomRuntimeAllocator
impl Send for RoomRuntimeAllocator
impl Sync for RoomRuntimeAllocator
impl Unpin for RoomRuntimeAllocator
impl UnsafeUnpin for RoomRuntimeAllocator
impl UnwindSafe for RoomRuntimeAllocator
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more