Trait cluFlock::SharedFlock

source ·
pub trait SharedFlock: Debug {
    type SharedLock: FlockLock;

    fn try_lock(self) -> Result<Self::SharedLock, Error>;
    fn wait_lock(self) -> Result<Self::SharedLock, Error>;
}
Expand description

Set a shared lock. A shared lock on a given file can hold more than one process.

Required Associated Types§

Required Methods§

Implementations on Foreign Types§

Implementors§