pub trait NonLendingHook<Args>: Hook<Args> + for<'hook> HookLifetime<'hook, Args, Value = Self::NonGenericValue> {
    type NonGenericValue;
}
Expand description

NonLendingHook is a subset of Hook. Value of NonLendingHook is not generic, thus not borrowing from the hook. In other words, NonLendingHook doesn’t lend to its Value.

Hook can be run by executor and become a LendingAsyncIterator, NonLendingHook can be run by executor and become an AsyncIterator (also known as Stream).

Required Associated Types

Implementors