pub struct WeakHandle<R> { /* private fields */ }
Expand description
An non-owning handle to a node resource.
Implementations§
Source§impl<R> WeakHandle<R>
impl<R> WeakHandle<R>
Sourcepub fn upgrade(&self) -> Option<ResourceHandle<R>>
pub fn upgrade(&self) -> Option<ResourceHandle<R>>
Attempt to turn this owned resource handle into a weak non-owning handle, if it still exists.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for WeakHandle<R>
impl<R> RefUnwindSafe for WeakHandle<R>where
R: RefUnwindSafe,
impl<R> Send for WeakHandle<R>
impl<R> Sync for WeakHandle<R>
impl<R> Unpin for WeakHandle<R>
impl<R> UnwindSafe for WeakHandle<R>where
R: RefUnwindSafe,
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