Enum Error

Source
#[non_exhaustive]
#[repr(u32)]
pub enum Error {
Show 80 variants AlreadyLocked = 1, Decompression = 2, Fuse = 6, GlobHadNoMatches = 8, ImageCount = 10, ImageNameCollision = 11, InsufficientPrivileges = 12, Integrity = 13, InvalidCaptureConfig = 14, InvalidChunkSize = 15, InvalidCompressionType = 16, InvalidHeader = 17, InvalidImage = 18, InvalidIntegrityTable = 19, InvalidLookupTableEntry = 20, InvalidMetadataResource = 21, InvalidOverlay = 23, InvalidParam = 24, InvalidPartNumber = 25, InvalidPipableWim = 26, InvalidReparseData = 27, InvalidResourceHash = 28, InvalidUtf8String = 31, InvalidUtf16String = 30, IsDirectory = 32, IsSplitWim = 33, Link = 35, MetadataNotFound = 36, Mkdir = 37, Mqueue = 38, Nomem = 39, Notdir = 40, Notempty = 41, NotARegularFile = 42, NotAWimFile = 43, NoFilename = 45, NotPipable = 44, Open = 47, Opendir = 48, PathDoesNotExist = 49, Read = 50, Readlink = 51, Rename = 52, ReparsePointFixupFailed = 54, ResourceNotFound = 55, ResourceOrder = 56, SetAttributes = 57, SetReparseData = 58, SetSecurity = 59, SetShortName = 60, SetTimestamps = 61, SplitInvalid = 62, Stat = 63, UnexpectedEndOfFile = 65, UnicodeStringNotRepresentable = 66, UnknownVersion = 67, Unsupported = 68, UnsupportedFile = 69, WimIsReadonly = 71, Write = 72, Xml = 73, WimIsEncrypted = 74, Wimboot = 75, AbortedByProgress = 76, UnknownProgressStatus = 77, Mknod = 78, MountedImageIsBusy = 79, NotAMountpoint = 80, NotPermittedToUnmount = 81, FveLockedVolume = 82, UnableToReadCaptureConfig = 83, WimIsIncomplete = 84, CompactionNotPossible = 85, ImageHasMultipleReferences = 86, DuplicateExportedImage = 87, ConcurrentModificationDetected = 88, SnapshotFailure = 89, InvalidXattr = 90, SetXattr = 91, Ntfs3G = 46,
}
Expand description

Possible values of the error code returned by many functions in wimlib

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.
§

AlreadyLocked = 1

The WIM is already locked for writing

§

Decompression = 2

The WIM contains invalid compressed data

§

Fuse = 6

An error was returned by fuse_main

§

GlobHadNoMatches = 8

The provided file glob did not match any files

§

ImageCount = 10

Inconsistent image count among the metadata resources, the WIM header, and/or the XML data

§

ImageNameCollision = 11

Tried to add an image with a name that is already in use

§

InsufficientPrivileges = 12

The user does not have sufficient privileges

§

Integrity = 13

The WIM file is corrupted (failed integrity check)

§

InvalidCaptureConfig = 14

The contents of the capture configuration file were invalid

§

InvalidChunkSize = 15

The compression chunk size was unrecognized

§

InvalidCompressionType = 16

The compression type was unrecognized

§

InvalidHeader = 17

The WIM header was invalid

§

InvalidImage = 18

Tried to select an image that does not exist in the WIM

§

InvalidIntegrityTable = 19

The WIM’s integrity table is invalid

§

InvalidLookupTableEntry = 20

An entry in the WIM’s lookup table is invalid

§

InvalidMetadataResource = 21

The metadata resource is invalid

§

InvalidOverlay = 23

Conflicting files in overlay when creating a WIM image

§

InvalidParam = 24

An invalid parameter was given

§

InvalidPartNumber = 25

The part number or total parts of the WIM is invalid

§

InvalidPipableWim = 26

The pipable WIM is invalid

§

InvalidReparseData = 27

The reparse data of a reparse point was invalid

§

InvalidResourceHash = 28

The SHA-1 message digest of a WIM resource did not match the expected value

§

InvalidUtf8String = 31

A string was not a valid UTF-8 string

§

InvalidUtf16String = 30

A string was not a valid UTF-16 string

§

IsDirectory = 32

One of the specified paths to delete was a directory

§

IsSplitWim = 33

The WIM is part of a split WIM, which is not supported for this operation

Failed to create a hard or symbolic link when extracting a file from the WIM

§

MetadataNotFound = 36

The WIM does not contain image metadata; it only contains file data

§

Mkdir = 37

Failed to create a directory

§

Mqueue = 38

Failed to create or use a POSIX message queue

§

Nomem = 39

Ran out of memory

§

Notdir = 40

Expected a directory

§

Notempty = 41

Directory was not empty

§

NotARegularFile = 42

One of the specified paths to extract did not correspond to a regular file

§

NotAWimFile = 43

The file did not begin with the magic characters that identify a WIM file

§

NoFilename = 45

The WIM is not identified with a filename

§

NotPipable = 44

The WIM was not captured such that it can be applied from a pipe

§

Open = 47

Failed to open a file

§

Opendir = 48

Failed to open a directory

§

PathDoesNotExist = 49

The path does not exist in the WIM image

§

Read = 50

Could not read data from a file

Could not read the target of a symbolic link

§

Rename = 52

Could not rename a file

§

ReparsePointFixupFailed = 54

Unable to complete reparse point fixup

§

ResourceNotFound = 55

A file resource needed to complete the operation was missing from the WIM

§

ResourceOrder = 56

The components of the WIM were arranged in an unexpected order

§

SetAttributes = 57

Failed to set attributes on extracted file

§

SetReparseData = 58

Failed to set reparse data on extracted file

§

SetSecurity = 59

Failed to set file owner, group, or other permissions on extracted file

§

SetShortName = 60

Failed to set short name on extracted file

§

SetTimestamps = 61

Failed to set timestamps on extracted file

§

SplitInvalid = 62

The WIM is part of an invalid split WIM

§

Stat = 63

Could not read the metadata for a file or directory

§

UnexpectedEndOfFile = 65

Unexpectedly reached the end of the file

§

UnicodeStringNotRepresentable = 66

A Unicode string could not be represented in the current locale’s encoding

§

UnknownVersion = 67

The WIM file is marked with an unknown version number

§

Unsupported = 68

The requested operation is unsupported

§

UnsupportedFile = 69

A file in the directory tree to archive was not of a supported type

§

WimIsReadonly = 71

The WIM is read-only (file permissions, header flag, or split WIM)

§

Write = 72

Failed to write data to a file

§

Xml = 73

The XML data of the WIM is invalid

§

WimIsEncrypted = 74

The WIM file (or parts of it) is encrypted

§

Wimboot = 75

Failed to set WIMBoot pointer data

§

AbortedByProgress = 76

The operation was aborted by the library user

§

UnknownProgressStatus = 77

The user-provided progress function returned an unrecognized value

§

Mknod = 78

Unable to create a special file (e.g. device node or socket)

§

MountedImageIsBusy = 79

There are still files open on the mounted WIM image

§

NotAMountpoint = 80

There is not a WIM image mounted on the directory

§

NotPermittedToUnmount = 81

The current user does not have permission to unmount the WIM image

§

FveLockedVolume = 82

The volume must be unlocked before it can be used

§

UnableToReadCaptureConfig = 83

The capture configuration file could not be read

§

WimIsIncomplete = 84

The WIM file is incomplete

§

CompactionNotPossible = 85

The WIM file cannot be compacted because of its format, its layout, or the write parameters specified by the user

§

ImageHasMultipleReferences = 86

The WIM image cannot be modified because it is currently referenced from multiple places

§

DuplicateExportedImage = 87

The destination WIM already contains one of the source images

§

ConcurrentModificationDetected = 88

A file being added to a WIM image was concurrently modified

§

SnapshotFailure = 89

Unable to create a filesystem snapshot

§

InvalidXattr = 90

An extended attribute entry in the WIM image is invalid

§

SetXattr = 91

Failed to set an extended attribute on an extracted file

§

Ntfs3G = 46

NTFS-3G encountered an error (check errno)

Implementations§

Source§

impl Error

Source

pub const fn from_raw(code: u32) -> Self

Create error from C library’s status code

Trait Implementations§

Source§

impl Clone for Error

Source§

fn clone(&self) -> Error

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for Error

Source§

fn eq(&self, other: &Error) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Error

Source§

impl Eq for Error

Source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.