[−][src]Struct polyfuse::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]
Auto Trait Implementations
impl RefUnwindSafe for FileLock
impl Send for FileLock
impl Sync for FileLock
impl Unpin for FileLock
impl UnwindSafe for FileLock
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,