switchyard/types/
mount.rs

1//! Data-only mount types used across the crate.
2
3/// Typed representation of mount flags.
4/// Centralized under `crate::types` for cross-layer reuse.
5#[derive(Debug, Clone, Copy, PartialEq, Eq)]
6pub struct MountFlags {
7    /// Whether the mount is read-only
8    pub read_only: bool,
9    /// Whether the mount has execution disabled
10    pub no_exec: bool,
11}
12
13/// Error types for mount operations.
14/// Centralized under `crate::types` for cross-layer reuse.
15#[derive(Debug, Copy, Clone, thiserror::Error)]
16pub enum MountError {
17    /// Unknown or ambiguous mount state
18    #[error("unknown or ambiguous mount state")]
19    Unknown,
20}