Trait ArcExt

Source
pub trait ArcExt {
    type Consume;

    // Required method
    fn consume(self) -> Self::Consume;
}

Required Associated Types§

Required Methods§

Source

fn consume(self) -> Self::Consume

Implementations on Foreign Types§

Source§

impl<T> ArcExt for Arc<Mutex<T>>
where T: Clone,

Source§

fn consume(self) -> T

Creates a clone of the current state of the object in the Mutex

Source§

type Consume = T

Source§

impl<T> ArcExt for Arc<RwLock<T>>
where T: Clone,

Implementors§