Trait PersistentInto

Source
pub trait PersistentInto<T> {
    // Required method
    fn persistent_into(self) -> T;
}
Expand description

Helper trait for overloading the constructors of Read/Write/State. This is an implementation detail, and should not be used for any other purpose.

For example, this trait lets you construct a Read<T> from either a T or an Arc<T>.

Required Methods§

Source

fn persistent_into(self) -> T

Convert self into a value of type T.

Implementors§

Source§

impl<T> PersistentInto<Arc<Mutex<T>>> for T

Source§

impl<T> PersistentInto<Arc<RwLock<T>>> for T

Source§

impl<T> PersistentInto<Arc<T>> for T

Source§

impl<T> PersistentInto<T> for T