Trait cluFlock::ToFlock

source ·
pub trait ToFlock: Debug {
    fn wait_exclusive_lock(self) -> Result<Self::ExclusiveLock, Error>
    where
        Self: ExclusiveFlock + Sized
, { ... } fn wait_exclusive_lock_fn<A: FnMut(Self::ExclusiveLockFn) -> R, R>(
        self,
        f: A
    ) -> Result<R, Error>
    where
        Self: ExclusiveFlockFn + Sized
, { ... } fn try_exclusive_lock(self) -> Result<Self::ExclusiveLock, Error>
    where
        Self: ExclusiveFlock + Sized
, { ... } fn try_exclusive_lock_fn<A: FnMut(Self::ExclusiveLockFn) -> R, R>(
        self,
        f: A
    ) -> Result<R, Error>
    where
        Self: ExclusiveFlockFn + Sized
, { ... } fn wait_shared_lock(self) -> Result<Self::SharedLock, Error>
    where
        Self: SharedFlock + Sized
, { ... } fn wait_shared_lock_fn<A: FnMut(Self::SharedLockFn) -> R, R>(
        self,
        f: A
    ) -> Result<R, Error>
    where
        Self: SharedFlockFn + Sized
, { ... } fn try_shared_lock(self) -> Result<Self::SharedLock, Error>
    where
        Self: SharedFlock + Sized
, { ... } fn try_shared_lock_fn<A: FnMut(Self::SharedLockFn) -> R, R>(
        self,
        f: A
    ) -> Result<R, Error>
    where
        Self: SharedFlockFn + Sized
, { ... } }
Expand description

Constructor, generalized for ‘Flock’

Provided Methods§

Implementations on Foreign Types§

Implementors§