pub enum Error {
Show 20 variants
NotFound,
Exists,
NoSpace,
BadOffset,
BadPath,
BadPhandle,
BadState,
Truncated,
BadMagic,
BadVersion,
BadStructure,
BadLayout,
Internal,
BadNCells,
BadValue,
BadOverlay,
NoPhandle,
BadFlags,
Alignment,
Unknown(i32),
}
Expand description
The possible errors libfdt
can output.
It is a 1-to-1 translation of errorlibfdt
can issue.
Variants§
NotFound
The requested node or property does not exist
Exists
Attempted to create a node or property which already exists
NoSpace
Operation needed to expand the device tree, but its buffer did not have sufficient space to contain the expanded tree.
BadOffset
Function was passed a structure block offset which is out-of-bounds, or which points to an unsuitable part of the structure for the operation.
BadPath
Function was passed a badly formatted path (e.g. missing a leading / for a function which requires an absolute path)
BadPhandle
Function was passed an invalid phandle. This can be caused either by an invalid phandle property length, or the phandle value was either 0 or -1, which are not permitted.
BadState
Function was passed an incomplete device tree created by the sequential-write functions, which is not sufficiently complete for the requested operation.