pub trait PeerAllocContextProvider: Send + Sync {
// Required method
fn build<'life0, 'life1, 'async_trait>(
&'life0 self,
query_context: &'life1 QueryContext,
) -> Pin<Box<dyn Future<Output = Result<PeerAllocContext>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Builds allocation inputs from the query that initiated an operation.
Required Methods§
Sourcefn build<'life0, 'life1, 'async_trait>(
&'life0 self,
query_context: &'life1 QueryContext,
) -> Pin<Box<dyn Future<Output = Result<PeerAllocContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn build<'life0, 'life1, 'async_trait>(
&'life0 self,
query_context: &'life1 QueryContext,
) -> Pin<Box<dyn Future<Output = Result<PeerAllocContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolves query-specific allocation inputs using metadata, without selecting peers.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".