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.

Required Associated Types§

Required Methods§

Implementations on Foreign Types§

Implementors§