pub enum MountType {
Regular,
Bind {
source_mount_node: Arc<MountNode>,
source_relative_path: String,
bind_type: BindType,
},
Overlay {
lower_layers: Vec<String>,
upper_layer: String,
work_dir: String,
},
}
Expand description
Mount type classification for different mount strategies
This enum defines the various mount types supported by the VFS system, each with different behaviors and resource handling approaches.
Variants§
Regular
Regular filesystem mount
Standard mount where the filesystem directly handles all operations at the mount point. This is the most common mount type.
Bind
Bind mount - maps one directory tree to another location
Bind mounts allow the same filesystem content to be accessible from multiple mount points. They support:
- Cross-VFS sharing for container resource sharing
- Read-only restrictions for security
- Shared propagation for namespace management
Fields
§
source_relative_path: String
Relative path within the source filesystem
Overlay
Overlay filesystem mount
Combines multiple filesystem layers into a unified view, typically used for container images and copy-on-write scenarios.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MountType
impl !RefUnwindSafe for MountType
impl Send for MountType
impl Sync for MountType
impl Unpin for MountType
impl !UnwindSafe for MountType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)