[−][src]Struct fd_lock_rs::FdLock
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]
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,
F: RefUnwindSafe,
impl<F> Send for FdLock<F> where
F: Send,
F: Send,
impl<F> Sync for FdLock<F> where
F: Sync,
F: Sync,
impl<F> Unpin for FdLock<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for FdLock<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,