[][src]Enum ilhook::x64::JmpType

pub enum JmpType {
    Direct,
    MovJmp,
    TrampolineJmp(usize),
}

Jmp type that the jmp instruction use.

Variants

Direct

Direct long jump. jmp instruction use 5 bytes, but may fail as memory allocation near the 2GB space may fail. jmp 0xXXXXXXXX

MovJmp

Mov rax and jump. Use 11 bytes. mov rax, 0xXXXXXXXXXXXXXXXX; jmp rax;

TrampolineJmp(usize)

Use 2 jmp instructions to jump. You have to specify the position of the second jmp. jmp 0xXXXXXXXX; some codes; mov rax, 0xXXXXXXXX; jmp rax;

Auto Trait Implementations

impl RefUnwindSafe for JmpType

impl Send for JmpType

impl Sync for JmpType

impl Unpin for JmpType

impl UnwindSafe for JmpType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.