pub struct PluginId(/* private fields */);Expand description
Opaque, copyable handle identifying one loaded plugin inside a
PluginLoader.
IDs are assigned monotonically starting at 0 and are unique within a single
loader instance until u32::MAX is reached (after which they wrap). In
practice the wrap is unreachable; it is handled without panicking for
robustness.
Trait Implementations§
impl Copy for PluginId
impl Eq for PluginId
impl StructuralPartialEq for PluginId
Auto Trait Implementations§
impl Freeze for PluginId
impl RefUnwindSafe for PluginId
impl Send for PluginId
impl Sync for PluginId
impl Unpin for PluginId
impl UnsafeUnpin for PluginId
impl UnwindSafe for PluginId
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