[][src]Struct polyfuse::Notifier

pub struct Notifier { /* fields omitted */ }

Implementations

impl Notifier[src]

pub fn inval_inode(&self, ino: u64, off: i64, len: i64) -> Result<()>[src]

Notify the cache invalidation about an inode to the kernel.

pub fn inval_entry<T>(&self, parent: u64, name: T) -> Result<()> where
    T: AsRef<OsStr>, 
[src]

Notify the invalidation about a directory entry to the kernel.

pub fn delete<T>(&self, parent: u64, child: u64, name: T) -> Result<()> where
    T: AsRef<OsStr>, 
[src]

Notify the invalidation about a directory entry to the kernel.

The role of this notification is similar to notify_inval_entry. Additionally, when the provided child inode matches the inode in the dentry cache, the inotify will inform the deletion to watchers if exists.

pub fn store<T>(&self, ino: u64, offset: u64, data: T) -> Result<()> where
    T: Bytes
[src]

Push the data in an inode for updating the kernel cache.

pub fn retrieve(&self, ino: u64, offset: u64, size: u32) -> Result<u64>[src]

Retrieve data in an inode from the kernel cache.

pub fn poll_wakeup(&self, kh: u64) -> Result<()>[src]

Send I/O readiness to the kernel.

Trait Implementations

impl Clone for Notifier[src]

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> Instrument 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.