Struct bee_runtime::resource::WeakHandle
source · [−]pub struct WeakHandle<R> { /* private fields */ }
Expand description
An non-owning handle to a node resource.
Implementations
sourceimpl<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
sourceimpl<R> Clone for WeakHandle<R>
impl<R> Clone for WeakHandle<R>
Auto Trait Implementations
impl<R> RefUnwindSafe for WeakHandle<R> where
R: RefUnwindSafe,
impl<R> Send for WeakHandle<R> where
R: Send + Sync,
impl<R> Sync for WeakHandle<R> where
R: Send + Sync,
impl<R> Unpin for WeakHandle<R>
impl<R> UnwindSafe for WeakHandle<R> where
R: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more