pub enum MountError {
RootDisabled,
BadPath(String),
AtRoot,
ProtectedPath(String),
Nested {
outer: String,
inner: String,
},
DuplicateVolume {
volume: String,
at: String,
},
TooMany,
MountPointUnavailable {
path: String,
reason: &'static str,
},
RootIo(Error),
Io(Error),
}Expand description
Why a mount could not be added.
Variants§
RootDisabled
The VFS has no root directory to mount below (vfs: none).
BadPath(String)
The guest path is not an absolute, normalized path.
AtRoot
/ is the root itself.
ProtectedPath(String)
The guest path names Git metadata.
Nested
One mount would sit inside another.
DuplicateVolume
The same volume is already mounted, or backs the root.
TooMany
The mount point exists in the root but is not a plain directory, or does not exist in a read-only root, which it may not create.
RootIo(Error)
Preparing the mount point in the root failed.
Io(Error)
Opening the volume’s directory failed. Carries no host path; the caller logs that.
Trait Implementations§
Source§impl Debug for MountError
impl Debug for MountError
Source§impl Display for MountError
impl Display for MountError
Source§impl Error for MountError
impl Error for MountError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for MountError
impl !UnwindSafe for MountError
impl Freeze for MountError
impl Send for MountError
impl Sync for MountError
impl Unpin for MountError
impl UnsafeUnpin for MountError
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