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§

type Root: Root

The type implementing the Root trait

Required Methods§

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

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

Implementors§