Trait prodash::WeakRoot

source ·
pub trait WeakRoot {
    type Root: Root;

    // Required method
    fn upgrade(&self) -> Option<Self::Root>;
}
Expand description

The top-level root as weak handle, which needs an upgrade to become a usable root.

If the underlying reference isn’t present anymore, such upgrade will fail permanently.

Required Associated Types§

source

type Root: Root

The type implementing the Root trait

Required Methods§

source

fn upgrade(&self) -> Option<Self::Root>

Equivalent to std::sync::Weak::upgrade().

Implementations on Foreign Types§

source§

impl WeakRoot for Weak<Root>

§

type Root = Arc<Root>

source§

fn upgrade(&self) -> Option<Self::Root>

Implementors§