[−][src]Struct polyfuse::Notifier
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]
&'_ self,
writer: &'_ mut W,
session: &'_ Session,
ino: u64,
off: i64,
len: i64
) -> Result<()> where
W: AsyncWrite + Unpin,
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]
&'_ self,
writer: &'_ mut W,
session: &'_ Session,
parent: u64,
name: impl AsRef<OsStr>
) -> Result<()> where
W: AsyncWrite + Unpin,
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]
&'_ self,
writer: &'_ mut W,
session: &'_ Session,
parent: u64,
child: u64,
name: impl AsRef<OsStr>
) -> Result<()> where
W: AsyncWrite + Unpin,
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]
&'_ self,
writer: &'_ mut W,
session: &'_ Session,
ino: u64,
offset: u64,
data: &'_ [&'_ [u8]]
) -> Result<()> where
W: AsyncWrite + Unpin,
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]
&'_ self,
writer: &'_ mut W,
session: &'_ Session,
ino: u64,
offset: u64,
size: u32
) -> Result<RetrieveHandle<T>> where
W: AsyncWrite + Unpin,
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]
&'_ self,
writer: &'_ mut W,
session: &'_ Session,
kh: u64
) -> Result<()> where
W: AsyncWrite + Unpin,
Send I/O readiness to the kernel.
Trait Implementations
Auto Trait Implementations
impl<T> Send for Notifier<T> where
T: Send,
T: Send,
impl<T> Sync for Notifier<T> where
T: Send,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,