pub struct InstanceId { /* private fields */ }Implementations§
Source§impl InstanceId
impl InstanceId
Sourcepub fn child_scope(self) -> Result<Scope, AccessError>
pub fn child_scope(self) -> Result<Scope, AccessError>
Create an owned child from a validated, non-owning parent identity. Controllers may capture this identity without retaining their own Scope.
Sourcepub fn is_alive(self) -> bool
pub fn is_alive(self) -> bool
Whether this generational instance and its Owner are still live. Does not enter construction context or invoke application code.
pub fn runtime(self) -> RuntimeId
pub fn slot(self) -> u32
pub fn generation(self) -> u32
Trait Implementations§
Source§impl Clone for InstanceId
impl Clone for InstanceId
impl Copy for InstanceId
Source§impl Debug for InstanceId
impl Debug for InstanceId
impl Eq for InstanceId
Source§impl Hash for InstanceId
impl Hash for InstanceId
Source§impl PartialEq for InstanceId
impl PartialEq for InstanceId
impl StructuralPartialEq for InstanceId
Auto Trait Implementations§
impl Forget for InstanceId
impl Freeze for InstanceId
impl Move for InstanceId
impl RefUnwindSafe for InstanceId
impl Send for InstanceId
impl Sync for InstanceId
impl Unpin for InstanceId
impl UnsafeUnpin for InstanceId
impl UnwindSafe for InstanceId
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