[][src]Struct bee_runtime::resource::WeakHandle

pub struct WeakHandle<R> { /* fields omitted */ }

An non-owning handle to a node resource.

Implementations

impl<R> WeakHandle<R>[src]

pub fn upgrade(&self) -> Option<ResourceHandle<R>>[src]

Attempt to turn this owned resource handle into a weak non-owning handle, if it still exists.

Trait Implementations

impl<R> Clone for WeakHandle<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for WeakHandle<R> where
    R: RefUnwindSafe
[src]

impl<R> Send for WeakHandle<R> where
    R: Send + Sync
[src]

impl<R> Sync for WeakHandle<R> where
    R: Send + Sync
[src]

impl<R> Unpin for WeakHandle<R>[src]

impl<R> UnwindSafe for WeakHandle<R> where
    R: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.