[][src]Trait simplelock::Lock

pub trait Lock {
    pub fn status(&self) -> SimpleLockResult<LockStatus>;
pub fn lock(&mut self) -> SimpleLockResult<()>;
pub fn unlock(&mut self) -> SimpleLockResult<()>; }

The Simple Lock trait.

Required methods

pub fn status(&self) -> SimpleLockResult<LockStatus>[src]

None if unknown, otherwise will contain the status.

pub fn lock(&mut self) -> SimpleLockResult<()>[src]

Attempt to perform the lock.

pub fn unlock(&mut self) -> SimpleLockResult<()>[src]

Attempt to perform the unlock.

Loading content...

Implementations on Foreign Types

impl Lock for Box<dyn Lock>[src]

Loading content...

Implementors

impl Lock for FakeLock[src]

Loading content...