IntoOneTimeExecutor

Trait IntoOneTimeExecutor 

Source
pub trait IntoOneTimeExecutor<'c>: IntoOneTimeExecutorAt<'c> + 'c { }
Expand description

Marker trait for IntoOneTimeExecutorAt<'a> + 'a. Do not implement directly.

Used as sugar to avoid writing:

fn some_query<'a>(op: impl IntoOnetOneExecutorAt<'a> + 'a)

Instead we can shorten the signature by using elision:

fn some_query(op: impl IntoOnetOneExecutor<'_>)

Implementors§

Source§

impl<'c, T> IntoOneTimeExecutor<'c> for T
where T: IntoOneTimeExecutorAt<'c> + 'c,