Struct rhook::Anchor[][src]

pub struct Anchor<'a> { /* fields omitted */ }

The struct that holds the current command hooks

It is created by calling add_hook/add_hooks on Command

This struct guarantees by the type system that Anchor::set_hooks is called

Implementations

impl<'a> Anchor<'a>[src]

pub fn set_hooks(&mut self) -> Result<&mut Command>[src]

Set the hooks, this is a required method since it does the actual work of creating a dynamic library and linking the target program with it

Trait Implementations

impl RunHook for Anchor<'_>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Anchor<'a>

impl<'a> Send for Anchor<'a>

impl<'a> Sync for Anchor<'a>

impl<'a> Unpin for Anchor<'a>

impl<'a> !UnwindSafe for Anchor<'a>

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.