pub struct CoreComponentRef { /* private fields */ }
Expand description
CoreComponentRef
is a version of CoreComponent
that holds a non-owning reference to the managed allocation.
Implementations§
Source§impl CoreComponentRef
impl CoreComponentRef
Sourcepub fn upgrade(&self) -> Option<CoreComponent>
pub fn upgrade(&self) -> Option<CoreComponent>
Attempts to upgrade the Weak pointer to an Arc
Auto Trait Implementations§
impl Freeze for CoreComponentRef
impl !RefUnwindSafe for CoreComponentRef
impl Send for CoreComponentRef
impl Sync for CoreComponentRef
impl Unpin for CoreComponentRef
impl !UnwindSafe for CoreComponentRef
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