pub struct LinuxKernelNotifier { /* private fields */ }Expand description
Native kernel-cache invalidation port owned by one mounted FUSE session.
Implementations§
Source§impl LinuxKernelNotifier
impl LinuxKernelNotifier
Sourcepub fn apply(&self, invalidation: &LinuxInvalidation) -> Result<()>
pub fn apply(&self, invalidation: &LinuxInvalidation) -> Result<()>
Applies one engine-produced invalidation to the mounted kernel namespace.
§Errors
Returns an error when the kernel rejects the invalidation or the mounted session is no longer available.
Sourcepub fn apply_all<'a>(
&self,
invalidations: impl IntoIterator<Item = &'a LinuxInvalidation>,
) -> Result<()>
pub fn apply_all<'a>( &self, invalidations: impl IntoIterator<Item = &'a LinuxInvalidation>, ) -> Result<()>
Applies an ordered engine plan, stopping at the first kernel error.
§Errors
Returns the first error produced while applying an invalidation to the kernel.
Trait Implementations§
Source§impl Clone for LinuxKernelNotifier
impl Clone for LinuxKernelNotifier
Source§fn clone(&self) -> LinuxKernelNotifier
fn clone(&self) -> LinuxKernelNotifier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LinuxKernelNotifier
impl RefUnwindSafe for LinuxKernelNotifier
impl Send for LinuxKernelNotifier
impl Sync for LinuxKernelNotifier
impl Unpin for LinuxKernelNotifier
impl UnwindSafe for LinuxKernelNotifier
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