RLibError

Enum RLibError 

Source
pub enum RLibError {
Show 143 variants DataCannotBeCompressed, DataCannotBeDecompressed, ManifestFileNotFound, ManifestFileParseError(String), DecodingNotMoreBytesToDecode, DecodingBoolError(u8), DecodingNoBytesLeftError, DecodingNotEnoughBytesToDecodeForType(String, usize, Option<usize>), DecodeIntError(ParseIntError), DecodeFloatError(ParseFloatError), DecodeUTF8Error(FromUtf8Error), DecodeUTF8StrError(Utf8Error), DecodeUTF16Error(FromUtf16Error), DecodeUTF16UnevenInputError(usize), DecodeUTF8FromISO8859Error(String), DecodingStringSizeError(String), DecodingOptionalStringBoolError(String), DecodingString0TeminatedNo0Error, EncodingPaddedStringError(String, String, usize, usize), GameInstallTypeNotSupported(String, String), GameInstallLaunchNotSupported(String, String), ParseBoolError(String), ReadFileFolderError(String), PackHeaderNotComplete, PackSubHeaderMissing, PackIndexesNotComplete, UnknownPFHFileType(String), UnknownPFHVersion(String), UnknownESFSignature(String), UnknownESFSignatureBytes(u8, u8), UnknownEFLineType(String), UnknownPipeType(String), GameDoesntSupportCs2Migration, DecodingTextUnsupportedEncodingOrNotATextFile, DecodingAnimsTableUnknownVersion(i32), DecodingCAVP8UnsupportedFormat, DecodingCAVP8IncorrectOrUnknownFrameSize, DecodingESFUnsupportedSignature(u8, u8), DecodingESFUnsupportedDataType(u8), DecodingESFRecordNameNotFound(u16), DecodingESFStringNotFound(u32), EncodingESFUnsupportedSignature(String), DecodingFontUnsupportedSignature(Vec<u8>), DecodingFastBinUnsupportedSignature(Vec<u8>), DecodingFastBinUnsupportedVersion(String, u16), EncodingFastBinUnsupportedVersion(String, u16), DecodingRigidModelUnsupportedSignature(Vec<u8>), DecodingRigidModelUnsupportedVersion(u32), DecodingRigidModelUnsupportedMaterialType(u16), DecodingRigidModelUnknownTextureType(i32), DecodingRigidModelUnknownVertexFormat(u16), DecodingRigidModelUnsupportedVertexFormatForMaterial(u16, u16), DecodingTableCombinedColour, SoundBankBKHDNotFound, SoundBankUnsupportedSectionFound(String), SoundBankUnsupportedVersionFound(u32, String), SoundBankUnsupportedLanguageFound(u32), SoundBankUnsupportedObjectTypeFound(u8), DecodingTableFieldError(u32, u32, String), DecodingTableFieldSequenceIndexError(u32, u32, usize, String), DecodingTableFieldSequenceDataError(u32, u32, String, String), DecodingTableIncomplete(String, Box<TableInMemory>), DecodingMissingExtraData, DecodingMissingExtraDataField(String), DecodingUnsupportedGameSelected(String), TableRowWrongFieldCount(usize, usize), EncodingTableWrongFieldType(String, String), DecodingDBNoDefinitionsFoundAndEmptyFile, DecodingDBNoDefinitionsFound, DecodingDBNotADBTable, DecodingLocNotALocTable, DecodingMatchedCombatNotAMatchedCombatTable, DecodingUnitVariantNotAUnitVariant, DecodingMismatchSizeError(usize, usize), DecodingPortraitSettingUnsupportedVersion(usize), DecodingUnsupportedVersion(usize), DecodingAnimFragmentUnsupportedVersion(usize), DecodingMatchedCombatUnsupportedVersion(usize), DecodedDataDoesNotMatchFileType(FileType, FileType), DecodingSoundPackedUnsupportedGame(String), EncodingSoundPackedUnsupportedGame(String), EncodingMissingExtraData, InvalidStateParticipantValue(u32), GitErrorDownloadFromRepo(String), GitErrorNoUpdatesAvailable(String), FileSourceChanged(String), DataTooBigForContainer(String, u64, usize, String), FileNotFound(String), FileNotDecoded(String), FileNotCached(String), ReservedFiles, EmptyDestiny, NoPacksProvided, MissingSQLitePool, PathMissingFileName(String), DependenciesCacheNotGeneratedorOutOfDate, DependenciesCacheFileNotFound(String), NoDefinitionUpdateAvailable, NoTableInGameFilesToCompare, AssemblyKitUnsupportedVersion(i16), AssemblyKitNotFound, AssemblyKitTableNotFound(String), AssemblyKitTableTableIgnored, AssemblyKitLocalisableFieldsNotFound, AssemblyKitExtraRelationshipsNotFound, RawTableMissingDefinition, ImportTSVIncorrectRow(usize, usize), ImportTSVWrongTypeTable, ImportTSVInvalidVersion, ImportTSVInvalidOrMissingPath, RFileMergeOnlyOneFileProvided, RFileMergeDifferentTypes, RFileMergeTablesDifferentNames, RFileMergeTablesNotEnoughTablesProvided, RFileMergeNotSupportedForType(String), GroupFormationUnknownBlockType(u32), PatchSiegeAIEmptyPack, PatchSiegeAINoPatchableFiles, SchemaNotProvided, IVFInvalidSubstraction, GameDoesntSupportWorkshop(String), SteamIDDoesntBelongToKnownGame(u64), GlobalSearchReplaceRequiresSameLenghtAndNotRegex, IOErrorPath(Box<Self>, PathBuf), TranslatorCouldNotLoadTranslation, GameInfoMissingFromDecodingFunction, GameInfoMissingFromEncodingFunction, IOError(Error), RonError(Error), RonSpannedError(SpannedError), CSVError(Error), JsonError(Error), TryFromSliceError(TryFromSliceError), SystemTimeError(SystemTimeError), StripPrefixError(StripPrefixError), TomlError(Error), XmlRsError(Error), Lz4Error(Error), LzmaError(Error), ImageError(ImageError), DDSDecError(DecodingError), DDSEncError(EncodingError), DecodingDDSColourFormatUnsupported,
}
Expand description

Custom error type for the lib.

Variants§

§

DataCannotBeCompressed

§

DataCannotBeDecompressed

§

ManifestFileNotFound

§

ManifestFileParseError(String)

§

DecodingNotMoreBytesToDecode

§

DecodingBoolError(u8)

§

DecodingNoBytesLeftError

§

DecodingNotEnoughBytesToDecodeForType(String, usize, Option<usize>)

§

DecodeIntError(ParseIntError)

§

DecodeFloatError(ParseFloatError)

§

DecodeUTF8Error(FromUtf8Error)

§

DecodeUTF8StrError(Utf8Error)

§

DecodeUTF16Error(FromUtf16Error)

§

DecodeUTF16UnevenInputError(usize)

§

DecodeUTF8FromISO8859Error(String)

§

DecodingStringSizeError(String)

§

DecodingOptionalStringBoolError(String)

§

DecodingString0TeminatedNo0Error

§

EncodingPaddedStringError(String, String, usize, usize)

§

GameInstallTypeNotSupported(String, String)

§

GameInstallLaunchNotSupported(String, String)

§

ParseBoolError(String)

§

ReadFileFolderError(String)

§

PackHeaderNotComplete

§

PackSubHeaderMissing

§

PackIndexesNotComplete

§

UnknownPFHFileType(String)

§

UnknownPFHVersion(String)

§

UnknownESFSignature(String)

§

UnknownESFSignatureBytes(u8, u8)

§

UnknownEFLineType(String)

§

UnknownPipeType(String)

§

GameDoesntSupportCs2Migration

§

DecodingTextUnsupportedEncodingOrNotATextFile

§

DecodingAnimsTableUnknownVersion(i32)

§

DecodingCAVP8UnsupportedFormat

§

DecodingCAVP8IncorrectOrUnknownFrameSize

§

DecodingESFUnsupportedSignature(u8, u8)

§

DecodingESFUnsupportedDataType(u8)

§

DecodingESFRecordNameNotFound(u16)

§

DecodingESFStringNotFound(u32)

§

EncodingESFUnsupportedSignature(String)

§

DecodingFontUnsupportedSignature(Vec<u8>)

§

DecodingFastBinUnsupportedSignature(Vec<u8>)

§

DecodingFastBinUnsupportedVersion(String, u16)

§

EncodingFastBinUnsupportedVersion(String, u16)

§

DecodingRigidModelUnsupportedSignature(Vec<u8>)

§

DecodingRigidModelUnsupportedVersion(u32)

§

DecodingRigidModelUnsupportedMaterialType(u16)

§

DecodingRigidModelUnknownTextureType(i32)

§

DecodingRigidModelUnknownVertexFormat(u16)

§

DecodingRigidModelUnsupportedVertexFormatForMaterial(u16, u16)

§

DecodingTableCombinedColour

§

SoundBankBKHDNotFound

§

SoundBankUnsupportedSectionFound(String)

§

SoundBankUnsupportedVersionFound(u32, String)

§

SoundBankUnsupportedLanguageFound(u32)

§

SoundBankUnsupportedObjectTypeFound(u8)

§

DecodingTableFieldError(u32, u32, String)

§

DecodingTableFieldSequenceIndexError(u32, u32, usize, String)

§

DecodingTableFieldSequenceDataError(u32, u32, String, String)

§

DecodingTableIncomplete(String, Box<TableInMemory>)

§

DecodingMissingExtraData

§

DecodingMissingExtraDataField(String)

§

DecodingUnsupportedGameSelected(String)

§

TableRowWrongFieldCount(usize, usize)

§

EncodingTableWrongFieldType(String, String)

§

DecodingDBNoDefinitionsFoundAndEmptyFile

§

DecodingDBNoDefinitionsFound

§

DecodingDBNotADBTable

§

DecodingLocNotALocTable

§

DecodingMatchedCombatNotAMatchedCombatTable

§

DecodingUnitVariantNotAUnitVariant

§

DecodingMismatchSizeError(usize, usize)

§

DecodingPortraitSettingUnsupportedVersion(usize)

§

DecodingUnsupportedVersion(usize)

§

DecodingAnimFragmentUnsupportedVersion(usize)

§

DecodingMatchedCombatUnsupportedVersion(usize)

§

DecodedDataDoesNotMatchFileType(FileType, FileType)

§

DecodingSoundPackedUnsupportedGame(String)

§

EncodingSoundPackedUnsupportedGame(String)

§

EncodingMissingExtraData

§

InvalidStateParticipantValue(u32)

§

GitErrorDownloadFromRepo(String)

§

GitErrorNoUpdatesAvailable(String)

§

FileSourceChanged(String)

§

DataTooBigForContainer(String, u64, usize, String)

§

FileNotFound(String)

§

FileNotDecoded(String)

§

FileNotCached(String)

§

ReservedFiles

§

EmptyDestiny

§

NoPacksProvided

§

MissingSQLitePool

§

PathMissingFileName(String)

§

DependenciesCacheNotGeneratedorOutOfDate

§

DependenciesCacheFileNotFound(String)

§

NoDefinitionUpdateAvailable

§

NoTableInGameFilesToCompare

§

AssemblyKitUnsupportedVersion(i16)

§

AssemblyKitNotFound

§

AssemblyKitTableNotFound(String)

§

AssemblyKitTableTableIgnored

§

AssemblyKitLocalisableFieldsNotFound

§

AssemblyKitExtraRelationshipsNotFound

§

RawTableMissingDefinition

§

ImportTSVIncorrectRow(usize, usize)

§

ImportTSVWrongTypeTable

§

ImportTSVInvalidVersion

§

ImportTSVInvalidOrMissingPath

§

RFileMergeOnlyOneFileProvided

§

RFileMergeDifferentTypes

§

RFileMergeTablesDifferentNames

§

RFileMergeTablesNotEnoughTablesProvided

§

RFileMergeNotSupportedForType(String)

§

GroupFormationUnknownBlockType(u32)

§

PatchSiegeAIEmptyPack

§

PatchSiegeAINoPatchableFiles

§

SchemaNotProvided

§

IVFInvalidSubstraction

§

GameDoesntSupportWorkshop(String)

§

SteamIDDoesntBelongToKnownGame(u64)

§

GlobalSearchReplaceRequiresSameLenghtAndNotRegex

§

IOErrorPath(Box<Self>, PathBuf)

§

TranslatorCouldNotLoadTranslation

§

GameInfoMissingFromDecodingFunction

§

GameInfoMissingFromEncodingFunction

§

IOError(Error)

Represents all other cases of std::io::Error.

§

RonError(Error)

Represents all other cases of ron::Error.

§

RonSpannedError(SpannedError)

Represents all other cases of ron::error::SpannedError.

§

CSVError(Error)

Represents all other cases of csv::Error.

§

JsonError(Error)

Represents all other cases of serde_json::Error.

§

TryFromSliceError(TryFromSliceError)

Represents all other cases of std::array::TryFromSliceError.

§

SystemTimeError(SystemTimeError)

Represents all other cases of std::time::SystemTimeError.

§

StripPrefixError(StripPrefixError)

Represents all other cases of std::path::StripPrefixError.

§

TomlError(Error)

Represents all other cases of toml::ser::Error.

§

XmlRsError(Error)

Represents all other cases of serde_xml_rs::Error.

§

Lz4Error(Error)

§

LzmaError(Error)

§

ImageError(ImageError)

§

DDSDecError(DecodingError)

§

DDSEncError(EncodingError)

§

DecodingDDSColourFormatUnsupported

Trait Implementations§

Source§

impl Debug for RLibError

Source§

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

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

impl Display for RLibError

Source§

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

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

impl Error for RLibError

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 From<DecodingError> for RLibError

Source§

fn from(source: DecodingError) -> Self

Converts to this type from the input type.
Source§

impl From<EncodingError> for RLibError

Source§

fn from(source: EncodingError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RLibError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RLibError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RLibError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RLibError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RLibError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RLibError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RLibError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RLibError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FromUtf16Error> for RLibError

Source§

fn from(source: FromUtf16Error) -> Self

Converts to this type from the input type.
Source§

impl From<FromUtf8Error> for RLibError

Source§

fn from(source: FromUtf8Error) -> Self

Converts to this type from the input type.
Source§

impl From<ImageError> for RLibError

Source§

fn from(source: ImageError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseFloatError> for RLibError

Source§

fn from(source: ParseFloatError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseIntError> for RLibError

Source§

fn from(source: ParseIntError) -> Self

Converts to this type from the input type.
Source§

impl From<SpannedError> for RLibError

Source§

fn from(source: SpannedError) -> Self

Converts to this type from the input type.
Source§

impl From<StripPrefixError> for RLibError

Source§

fn from(source: StripPrefixError) -> Self

Converts to this type from the input type.
Source§

impl From<SystemTimeError> for RLibError

Source§

fn from(source: SystemTimeError) -> Self

Converts to this type from the input type.
Source§

impl From<TryFromSliceError> for RLibError

Source§

fn from(source: TryFromSliceError) -> Self

Converts to this type from the input type.
Source§

impl From<Utf8Error> for RLibError

Source§

fn from(source: Utf8Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V