pub enum Error {
Show 16 variants
InvalidOffset,
BufferTooSmall,
PrematureEndOfInput,
NoSuchBlock,
NotImplemented,
NotFound,
ExistsButShouldNot,
BadAddress,
DecodeError,
InvalidMagicNumber,
IncoherentData,
InvalidArgument,
IsFile,
IsDir,
IsSymLink,
WriteError,
}
Variants§
InvalidOffset
The offset is out of bounds or does not meet other restrictions.
BufferTooSmall
The provided buffer was too small to fit all the data it needs to fit.
PrematureEndOfInput
The input ended although it was expected to produce more data.
NoSuchBlock
The requested block is not present on the device.
NotImplemented
The requested function is not implemented for this I/O component.
NotFound
The requested entity is not present on the device or the registry does not hold an entry matching the criteria.
ExistsButShouldNot
An entry or entity was found, but there must not be one in order for the operation to continue or succeed.
BadAddress
The provided address is invalid.
DecodeError
An invalid value was encountered while decoding.
InvalidMagicNumber
The magic value in the data does not match the expected one.
IncoherentData
The data provided was not coherent or a checksum did not match the data.
InvalidArgument
The provided argument was invalid.
IsFile
The found entry is a file, but shouldn’t be.
IsDir
The found entry is a directory, but shouldn’t be.
IsSymLink
The found entry is a symbolic link, but shouldn’t be.
WriteError
An unexpected error occurred during the write, or the write couldn’t be completed.