LockableNew

Trait LockableNew 

Source
pub trait LockableNew: Lockable {
    type Value;

    // Required method
    fn new(value: Self::Value) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn new(value: Self::Value) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> LockableNew for hala_sync::spin_simple::SpinMutex<T>

Source§

type Value = T

Source§

impl<T> LockableNew for hala_sync::SpinMutex<T>

Source§

type Value = T