pub struct MountHierarchy { /* private fields */ }Expand description
Manages a hierarchy of filesystem mount points.
Maintains a collection of mount points with different permissions, routing filesystem operations to the appropriate mount based on path.
Implementations§
Trait Implementations§
Source§impl FileSystem for MountHierarchy
impl FileSystem for MountHierarchy
Source§fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
search: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
search: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Searches for files matching the given query.
Source§fn view<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
view_range: Option<(u32, u32)>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn view<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
view_range: Option<(u32, u32)>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Views the contents of a file, optionally within a specific line range.
Source§fn str_replace<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
path: &'life1 str,
old_str: &'life2 str,
new_str: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn str_replace<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
path: &'life1 str,
old_str: &'life2 str,
new_str: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Replaces occurrences of a string in a file.
Source§fn insert<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 str,
insert_line: u32,
new_str: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn insert<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 str,
insert_line: u32,
new_str: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Inserts text at a specific line in a file.
Auto Trait Implementations§
impl Freeze for MountHierarchy
impl !RefUnwindSafe for MountHierarchy
impl Send for MountHierarchy
impl Sync for MountHierarchy
impl Unpin for MountHierarchy
impl !UnwindSafe for MountHierarchy
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