Function tor_dirmgr::upgrade_weak_ref
source · pub(crate) fn upgrade_weak_ref<T>(weak: &Weak<T>) -> Result<Arc<T>>
Expand description
Try to upgrade a weak reference to a DirMgr, and give an error on failure.
pub(crate) fn upgrade_weak_ref<T>(weak: &Weak<T>) -> Result<Arc<T>>
Try to upgrade a weak reference to a DirMgr, and give an error on failure.