pub struct Notifier { /* private fields */ }Implementations§
Source§impl Notifier
impl Notifier
Sourcepub fn inval_inode(&self, ino: u64, off: i64, len: i64) -> Result<()>
pub fn inval_inode(&self, ino: u64, off: i64, len: i64) -> Result<()>
Notify the cache invalidation about an inode to the kernel.
Sourcepub fn inval_entry<T>(&self, parent: u64, name: T) -> Result<()>
pub fn inval_entry<T>(&self, parent: u64, name: T) -> Result<()>
Notify the invalidation about a directory entry to the kernel.
Sourcepub fn delete<T>(&self, parent: u64, child: u64, name: T) -> Result<()>
pub fn delete<T>(&self, parent: u64, child: u64, name: T) -> Result<()>
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.
Sourcepub fn store<T>(&self, ino: u64, offset: u64, data: T) -> Result<()>where
T: Bytes,
pub fn store<T>(&self, ino: u64, offset: u64, data: T) -> Result<()>where
T: Bytes,
Push the data in an inode for updating the kernel cache.
Sourcepub fn retrieve(&self, ino: u64, offset: u64, size: u32) -> Result<u64>
pub fn retrieve(&self, ino: u64, offset: u64, size: u32) -> Result<u64>
Retrieve data in an inode from the kernel cache.
Sourcepub fn poll_wakeup(&self, kh: u64) -> Result<()>
pub fn poll_wakeup(&self, kh: u64) -> Result<()>
Send I/O readiness to the kernel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Notifier
impl RefUnwindSafe for Notifier
impl Send for Notifier
impl Sync for Notifier
impl Unpin for Notifier
impl UnwindSafe for Notifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more