pub struct LinuxInodeTable { /* private fields */ }Expand description
Immutable mapping restored before exposing a FUSE mount to the kernel.
Product code persists and restores these records. The table deliberately does not derive inode values from names, paths, or hashes: a rename and a daemon restart must retain the same record.
Implementations§
Source§impl LinuxInodeTable
impl LinuxInodeTable
Sourcepub fn new(
root: LinuxInodeRecord,
records: impl IntoIterator<Item = LinuxInodeRecord>,
) -> Result<Self>
pub fn new( root: LinuxInodeRecord, records: impl IntoIterator<Item = LinuxInodeRecord>, ) -> Result<Self>
Restores an immutable table. records must exclude the root record.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub const fn root(&self) -> &LinuxInodeRecord
pub const fn root(&self) -> &LinuxInodeRecord
Returns the root record.
Sourcepub fn by_key(&self, key: &CloudItemKey) -> Option<&LinuxInodeRecord>
pub fn by_key(&self, key: &CloudItemKey) -> Option<&LinuxInodeRecord>
Returns the restored record for one stable key.
Sourcepub fn by_inode(&self, inode: LinuxInode) -> Option<&LinuxInodeRecord>
pub fn by_inode(&self, inode: LinuxInode) -> Option<&LinuxInodeRecord>
Returns the restored record for one native inode.
Sourcepub fn records(&self) -> impl Iterator<Item = &LinuxInodeRecord>
pub fn records(&self) -> impl Iterator<Item = &LinuxInodeRecord>
Returns every non-root record in arbitrary map order for persistence checks.
Trait Implementations§
Source§impl Clone for LinuxInodeTable
impl Clone for LinuxInodeTable
Source§fn clone(&self) -> LinuxInodeTable
fn clone(&self) -> LinuxInodeTable
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 LinuxInodeTable
impl RefUnwindSafe for LinuxInodeTable
impl Send for LinuxInodeTable
impl Sync for LinuxInodeTable
impl Unpin for LinuxInodeTable
impl UnwindSafe for LinuxInodeTable
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