Trait concurrency_traits::RawTimeoutMutex[][src]

pub trait RawTimeoutMutex: RawMutex {
    fn lock_timeout(&self, timeout: Duration) -> bool;
}

A raw mutex that can be timed out and holds no data.

Required methods

fn lock_timeout(&self, timeout: Duration) -> bool[src]

Locks the mutex on a timeout. Returns true if locked.

Loading content...

Implementors

Loading content...