[][src]Struct polyfuse_tokio::Notifier

pub struct Notifier { /* fields omitted */ }

Notification sender to the kernel.

Methods

impl Notifier[src]

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

Attempt to make a clone of this instance.

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

Invalidate the specified range of cache data for an inode.

When the kernel receives this notification, some requests are queued to read the updated data.

pub async fn inval_entry<'_>(
    &'_ mut self,
    parent: u64,
    name: impl AsRef<OsStr>
) -> Result<()>
[src]

Invalidate an entry with the specified name in the directory.

pub async fn delete<'_>(
    &'_ mut self,
    parent: u64,
    child: u64,
    name: impl AsRef<OsStr>
) -> Result<()>
[src]

Notify that an entry with the specified name has been deleted from the directory.

pub async fn store<'_, '_, '_>(
    &'_ mut self,
    ino: u64,
    offset: u64,
    data: &'_ [&'_ [u8]]
) -> Result<()>
[src]

Replace the specified range of cache data with a new value.

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

Retrieve the value of the cache data with the specified range.

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

Notify an I/O readiness.

Trait Implementations

impl Debug for Notifier[src]

Auto Trait Implementations

impl Send for Notifier

impl Sync for Notifier

impl Unpin for Notifier

impl !UnwindSafe for Notifier

impl !RefUnwindSafe for Notifier

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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