Enum detour::error::ErrorKind
[−]
pub enum ErrorKind {
Msg(String),
RegionFailure(Error),
AllocateFailure(MapError),
AlreadyExisting,
InvalidCode,
NoPatchArea,
NotExecutable,
OutOfMemory,
UnsupportedLoop,
UnsupportedRelativeBranch,
}The kind of an error.
Variants
Msg(String)A convenient variant for String.
RegionFailure(Error)AllocateFailure(MapError)AlreadyExistingA static detour has already been initialized
InvalidCodeThe address does not contain valid instructions.
NoPatchAreaThe address has no available area for patching.
NotExecutableThe address is not executable memory.
OutOfMemoryThe system is out of executable memory.
UnsupportedLoopThe address contains an external loop.
UnsupportedRelativeBranchThe address contains an unsupported relative branch.
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.