pub struct NativeMountSession { /* private fields */ }Expand description
Process-owned mounted namespace. Drop performs one idempotent stop.
Implementations§
Source§impl NativeMountSession
impl NativeMountSession
Sourcepub fn destination(&self) -> &Path
pub fn destination(&self) -> &Path
Exact mounted destination.
Sourcepub fn invalidate(&self, path: &[u8]) -> Result<(), NativeMountError>
pub fn invalidate(&self, path: &[u8]) -> Result<(), NativeMountError>
Drops the kernel’s cached entry/attributes for one mount-relative
path (leading / optional). Linux FUSE also invalidates resident
file data. This makes a projection change — such as a
removed route — visible immediately instead of after a cache timeout.
Linux FUSE supports nested entries when the parent directory has a
cached inode; otherwise the entry becomes visible at cache expiry.
§Errors
Returns a driver error when the transport cannot invalidate (the change then becomes visible at the cache’s own expiry).
Trait Implementations§
Source§impl Drop for NativeMountSession
impl Drop for NativeMountSession
Auto Trait Implementations§
impl !RefUnwindSafe for NativeMountSession
impl !UnwindSafe for NativeMountSession
impl Freeze for NativeMountSession
impl Send for NativeMountSession
impl Sync for NativeMountSession
impl Unpin for NativeMountSession
impl UnsafeUnpin for NativeMountSession
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request