#[non_exhaustive]#[repr(i32)]pub enum ErrorCode {
Show 14 variants
FsCollision = 5_006,
ApplyFlags = 5_005,
ChangeMode = 5_012,
ChangeOwner = 5_011,
IdMap = 5_013,
Lock = 5_008,
LoopDevice = 5_003,
LoopDeviceOverlap = 5_007,
UserspaceMountOptions = 5_004,
NamespaceSwitch = 5_009,
FsTabMissingEntry = 5_000,
NoFsType = 5_001,
UndefinedMountSource = 5_002,
OnlyOnce = 5_010,
}Expand description
libmount’s private error codes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FsCollision = 5_006
libblkid detected multiple file systems for the same device.
ApplyFlags = 5_005
Failed to set the propagation type of mount and unmount events between namespaces.
ChangeMode = 5_012
File system mounted, but subsequent X-mount.mode= chmod(2) failed
ChangeOwner = 5_011
File system mounted, but subsequent X-mount.owner=/X-mount.group= lchown(2) failed
IdMap = 5_013
File system mounted, but subsequent X-mount.idmap= failed.
Lock = 5_008
Failed to lock utab.
LoopDevice = 5_003
Failed to setup a loop device.
LoopDeviceOverlap = 5_007
Detected overlapping loop devices that can not be reused.
UserspaceMountOptions = 5_004
Failed to parse/use userspace mount options.
NamespaceSwitch = 5_009
Failed to switch namespace.
FsTabMissingEntry = 5_000
Missing required entry in /etc/fstab.
NoFsType = 5_001
Failed to detect file system type.
UndefinedMountSource = 5_002
Required mount source was undefined.
OnlyOnce = 5_010
File system mounted, but --onlyonce specified
Trait Implementations§
Source§impl TryFromPrimitive for ErrorCode
impl TryFromPrimitive for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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