[][src]Struct polyfuse::Notifier

pub struct Notifier<T> { /* fields omitted */ }

Notification sender.

Methods

impl<T> Notifier<T>[src]

pub fn new() -> Self[src]

Create a new Notifier.

pub async fn inval_inode<'_, '_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    session: &'_ Session,
    ino: u64,
    off: i64,
    len: i64
) -> Result<()> where
    W: AsyncWrite + Unpin
[src]

Notify the cache invalidation about an inode to the kernel.

pub async fn inval_entry<'_, '_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    session: &'_ Session,
    parent: u64,
    name: impl AsRef<OsStr>
) -> Result<()> where
    W: AsyncWrite + Unpin
[src]

Notify the invalidation about a directory entry to the kernel.

pub async fn delete<'_, '_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    session: &'_ Session,
    parent: u64,
    child: u64,
    name: impl AsRef<OsStr>
) -> Result<()> where
    W: AsyncWrite + Unpin
[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 async fn store<'_, '_, '_, '_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    session: &'_ Session,
    ino: u64,
    offset: u64,
    data: &'_ [&'_ [u8]]
) -> Result<()> where
    W: AsyncWrite + Unpin
[src]

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

pub async fn retrieve<'_, '_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    session: &'_ Session,
    ino: u64,
    offset: u64,
    size: u32
) -> Result<RetrieveHandle<T>> where
    W: AsyncWrite + Unpin
[src]

Retrieve data in an inode from the kernel cache.

pub async fn poll_wakeup<'_, '_, '_, W: ?Sized>(
    &'_ self,
    writer: &'_ mut W,
    session: &'_ Session,
    kh: u64
) -> Result<()> where
    W: AsyncWrite + Unpin
[src]

Send I/O readiness to the kernel.

Trait Implementations

impl<T> Default for Notifier<T>[src]

impl<T: Debug> Debug for Notifier<T>[src]

Auto Trait Implementations

impl<T> Send for Notifier<T> where
    T: Send

impl<T> Sync for Notifier<T> where
    T: Send

impl<T> Unpin for Notifier<T>

impl<T> !UnwindSafe for Notifier<T>

impl<T> !RefUnwindSafe for Notifier<T>

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 = !

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]