Trait LoaderRunnerPlugin
Source pub trait LoaderRunnerPlugin: Send + Sync {
type Context: Send;
// Required method
fn process_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
resource_data: &'life1 ResourceData,
) -> Pin<Box<dyn Future<Output = Result<Option<Content>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided methods
fn name(&self) -> &'static str { ... }
fn before_all<'life0, 'life1, 'async_trait>(
&'life0 self,
_context: &'life1 mut LoaderContext<Self::Context>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn should_yield<'life0, 'life1, 'async_trait>(
&'life0 self,
_context: &'life1 LoaderContext<Self::Context>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn start_yielding<'life0, 'life1, 'async_trait>(
&'life0 self,
_context: &'life1 mut LoaderContext<Self::Context>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}