pub struct InstanceHandleAllocator { /* private fields */ }Expand description
Atomarer Counter zur Vergabe eindeutiger InstanceHandle-Werte.
Eine Instanz pro Runtime/Process — ueblicherweise auf der
DcpsRuntime als gemeinsame Allokationsquelle fuer Entities und
Sample-Instanzen.
Implementations§
Source§impl InstanceHandleAllocator
impl InstanceHandleAllocator
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Neuer Allocator. Erste Vergabe liefert 1 (HANDLE_NIL=0 ist
reserviert).
Sourcepub fn allocate(&self) -> InstanceHandle
pub fn allocate(&self) -> InstanceHandle
Liefert den naechsten freien Handle (monoton steigend). Thread-safe.
Trait Implementations§
Source§impl Debug for InstanceHandleAllocator
impl Debug for InstanceHandleAllocator
Auto Trait Implementations§
impl !Freeze for InstanceHandleAllocator
impl RefUnwindSafe for InstanceHandleAllocator
impl Send for InstanceHandleAllocator
impl Sync for InstanceHandleAllocator
impl Unpin for InstanceHandleAllocator
impl UnsafeUnpin for InstanceHandleAllocator
impl UnwindSafe for InstanceHandleAllocator
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