[][src]Struct fd_lock_rs::FdLock

pub struct FdLock<F: AsRawFd>(_);

Implementations

impl<F: AsRawFd> FdLock<F>[src]

pub fn lock(f: F, lock_type: LockType, blocking: bool) -> Result<Self, Error>[src]

pub fn map<Func: FnOnce(F) -> F_, F_: AsRawFd>(self, map_fn: Func) -> FdLock<F_>[src]

pub fn unlock(self, blocking: bool) -> Result<F, (Self, Error)>[src]

Trait Implementations

impl<F: AsRawFd> Deref for FdLock<F>[src]

type Target = F

The resulting type after dereferencing.

impl<F: AsRawFd> DerefMut for FdLock<F>[src]

impl<F: AsRawFd> Drop for FdLock<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for FdLock<F> where
    F: RefUnwindSafe

impl<F> Send for FdLock<F> where
    F: Send

impl<F> Sync for FdLock<F> where
    F: Sync

impl<F> Unpin for FdLock<F> where
    F: Unpin

impl<F> UnwindSafe for FdLock<F> where
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.