Struct hooks_core::fn_hook::FnHook
source · pub struct FnHook<Data, P, U, H> { /* private fields */ }
Trait Implementations
sourceimpl<Args, Data, P, U, H> Hook<Args> for FnHook<Data, P, U, H>where
H: for<'a> HookLifetime<'a, Args>,
P: FnMut(Pin<&mut Data>, &mut Context<'_>) -> Poll<bool>,
U: for<'hook> FnMut(Pin<&'hook mut Data>, Args) -> <H as HookLifetime<'hook, Args>>::Value,
impl<Args, Data, P, U, H> Hook<Args> for FnHook<Data, P, U, H>where
H: for<'a> HookLifetime<'a, Args>,
P: FnMut(Pin<&mut Data>, &mut Context<'_>) -> Poll<bool>,
U: for<'hook> FnMut(Pin<&'hook mut Data>, Args) -> <H as HookLifetime<'hook, Args>>::Value,
fn use_hook<'hook>(
self: Pin<&'hook mut Self>,
args: Args
) -> <Self as HookLifetime<'hook, Args>>::Valuewhere
Self: 'hook,
sourceimpl<Data, P, U, H: HookBounds> HookBounds for FnHook<Data, P, U, H>
impl<Data, P, U, H: HookBounds> HookBounds for FnHook<Data, P, U, H>
type Bounds = <H as HookBounds>::Bounds
sourceimpl<'hook, Args, Data, P, U, H: HookLifetime<'hook, Args>> HookLifetime<'hook, Args, &'hook <FnHook<Data, P, U, H> as HookBounds>::Bounds> for FnHook<Data, P, U, H>
impl<'hook, Args, Data, P, U, H: HookLifetime<'hook, Args>> HookLifetime<'hook, Args, &'hook <FnHook<Data, P, U, H> as HookBounds>::Bounds> for FnHook<Data, P, U, H>
type Value = <H as HookLifetime<'hook, Args, &'hook <H as HookBounds>::Bounds>>::Value
sourceimpl<Data, P, U, H> HookPollNextUpdate for FnHook<Data, P, U, H>where
P: FnMut(Pin<&mut Data>, &mut Context<'_>) -> Poll<bool>,
impl<Data, P, U, H> HookPollNextUpdate for FnHook<Data, P, U, H>where
P: FnMut(Pin<&mut Data>, &mut Context<'_>) -> Poll<bool>,
impl<'__pin, Data, P, U, H> Unpin for FnHook<Data, P, U, H>where
__Origin<'__pin, Data, P, U, H>: Unpin,
Auto Trait Implementations
impl<Data, P, U, H> RefUnwindSafe for FnHook<Data, P, U, H>where
Data: RefUnwindSafe,
H: RefUnwindSafe,
P: RefUnwindSafe,
U: RefUnwindSafe,
impl<Data, P, U, H> Send for FnHook<Data, P, U, H>where
Data: Send,
H: Send,
P: Send,
U: Send,
impl<Data, P, U, H> Sync for FnHook<Data, P, U, H>where
Data: Sync,
H: Sync,
P: Sync,
U: Sync,
impl<Data, P, U, H> UnwindSafe for FnHook<Data, P, U, H>where
Data: UnwindSafe,
H: UnwindSafe,
P: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more