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 Error for RLibError
impl Error for RLibError
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()
Source§impl From<DecodingError> for RLibError
impl From<DecodingError> for RLibError
Source§fn from(source: DecodingError) -> Self
fn from(source: DecodingError) -> Self
Converts to this type from the input type.
Source§impl From<EncodingError> for RLibError
impl From<EncodingError> for RLibError
Source§fn from(source: EncodingError) -> Self
fn from(source: EncodingError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf16Error> for RLibError
impl From<FromUtf16Error> for RLibError
Source§fn from(source: FromUtf16Error) -> Self
fn from(source: FromUtf16Error) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for RLibError
impl From<FromUtf8Error> for RLibError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ImageError> for RLibError
impl From<ImageError> for RLibError
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for RLibError
impl From<ParseFloatError> for RLibError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for RLibError
impl From<ParseIntError> for RLibError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<SpannedError> for RLibError
impl From<SpannedError> for RLibError
Source§fn from(source: SpannedError) -> Self
fn from(source: SpannedError) -> Self
Converts to this type from the input type.
Source§impl From<StripPrefixError> for RLibError
impl From<StripPrefixError> for RLibError
Source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for RLibError
impl From<SystemTimeError> for RLibError
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for RLibError
impl From<TryFromSliceError> for RLibError
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RLibError
impl !RefUnwindSafe for RLibError
impl Send for RLibError
impl Sync for RLibError
impl Unpin for RLibError
impl !UnwindSafe for RLibError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.