IArc

Trait IArc 

Source
pub trait IArc<T> {
    type UpgradeErr: Debug;

    // Required methods
    fn weak(&self) -> Weak<T>;
    fn upgrade(&self) -> Result<Arc<T>, Self::UpgradeErr>;
}

Required Associated Types§

Required Methods§

Source

fn weak(&self) -> Weak<T>

Source

fn upgrade(&self) -> Result<Arc<T>, Self::UpgradeErr>

Implementations on Foreign Types§

Source§

impl<T> IArc<T> for Arc<T>

Source§

impl<T> IArc<T> for Weak<T>

Implementors§