Struct rhook::Anchor [−][src]
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,