Trait cluFlock::ExclusiveFlock
source · pub trait ExclusiveFlock: Debug {
type ExclusiveLock: FlockLock;
fn try_lock(self) -> Result<Self::ExclusiveLock, Error>;
fn wait_lock(self) -> Result<Self::ExclusiveLock, Error>;
}
Expand description
To establish exclusive blocking. Only one process can hold exclusive blocking of the file.