pub struct IdAllocator { /* private fields */ }
Expand description
ID allocator for managing import and export IDs
Implementations§
Source§impl IdAllocator
impl IdAllocator
Sourcepub fn allocate_import(&self) -> ImportId
pub fn allocate_import(&self) -> ImportId
Allocate a new local import ID (positive)
Sourcepub fn allocate_export(&self) -> ExportId
pub fn allocate_export(&self) -> ExportId
Allocate a new local export ID (negative)
Sourcepub fn register_remote_import(&self, id: i64) -> ImportId
pub fn register_remote_import(&self, id: i64) -> ImportId
Register a remote import ID (negative)
Sourcepub fn register_remote_export(&self, id: i64) -> ExportId
pub fn register_remote_export(&self, id: i64) -> ExportId
Register a remote export ID (positive)
Trait Implementations§
Source§impl Debug for IdAllocator
impl Debug for IdAllocator
Auto Trait Implementations§
impl !Freeze for IdAllocator
impl RefUnwindSafe for IdAllocator
impl Send for IdAllocator
impl Sync for IdAllocator
impl Unpin for IdAllocator
impl UnwindSafe for IdAllocator
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