pub trait AuctionResultsProvider<TYPES: NodeType>:
Send
+ Sync
+ Clone {
// Required method
fn fetch_auction_result<'life0, 'async_trait>(
&'life0 self,
view_number: TYPES::View,
) -> Pin<Box<dyn Future<Output = Result<TYPES::AuctionResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
The AuctionResultsProvider trait is the sole source of Solver-originated state and interaction,
and returns the results of the Solver’s allocation via the associated type. The associated type,
AuctionResult
, also implements the HasUrls
trait, which requires that the output
type has the requisite fields available.
Required Methods§
sourcefn fetch_auction_result<'life0, 'async_trait>(
&'life0 self,
view_number: TYPES::View,
) -> Pin<Box<dyn Future<Output = Result<TYPES::AuctionResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_auction_result<'life0, 'async_trait>(
&'life0 self,
view_number: TYPES::View,
) -> Pin<Box<dyn Future<Output = Result<TYPES::AuctionResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetches the auction result for a view. Does not cache the result, subsequent calls will invoke additional wasted calls.
Object Safety§
This trait is not object safe.