[][src]Struct polyfuse::FileLock

#[repr(transparent)]
pub struct FileLock(_);

File lock information.

This type is ABI-compatible with fuse_file_lock.

Methods

impl FileLock[src]

pub fn typ(&self) -> u32[src]

Return the type of lock.

pub fn set_typ(&mut self, typ: u32)[src]

Set the type of lock.

pub fn start(&self) -> u64[src]

Return the starting offset for lock.

pub fn set_start(&mut self, start: u64)[src]

Set the starting offset for lock.

pub fn end(&self) -> u64[src]

Return the ending offset for lock.

pub fn set_end(&mut self, end: u64)[src]

Set the ending offset for lock.

pub fn pid(&self) -> u32[src]

Return the process ID blocking the lock.

pub fn set_pid(&mut self, pid: u32)[src]

Set the process ID blocking the lock.

Trait Implementations

impl Clone for FileLock[src]

impl Copy for FileLock[src]

impl Debug for FileLock[src]

impl Default for FileLock[src]

impl TryFrom<flock> for FileLock[src]

type Error = InvalidFileLock

The type returned in the event of a conversion error.

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.