[][src]Struct fancy_flocks::sd_flock::SdFlock

pub struct SdFlock(_, _);

Methods

impl SdFlock[src]

pub fn new<P>(p: P) -> SdFlock where
    P: AsRef<Path>, 
[src]

pub fn lock_shared(&self) -> Result<()>[src]

pub fn lock_exclusive(&self) -> Result<()>[src]

pub fn try_lock_shared(&self) -> Result<()>[src]

pub fn try_lock_exclusive(&self) -> Result<()>[src]

pub fn unlock(&self) -> Result<()>[src]

pub fn file(&mut self) -> &mut File[src]

pub fn path(&self) -> &Path[src]

Trait Implementations

impl Drop for SdFlock[src]

Auto Trait Implementations

impl !Sync for SdFlock

impl Send for SdFlock

impl Unpin for SdFlock

impl UnwindSafe for SdFlock

impl !RefUnwindSafe for SdFlock

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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