WeakRoot

Trait 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>

Source§

type Root = Arc<Root>

Source§

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

Implementors§