Trait RecipeSource
pub trait RecipeSource: Send + Sync {
// Required method
fn recipes(&self, ask: &RecipeAsk) -> Result<Vec<RecipeSpec>, SourceError>;
}Expand description
A source of curve recipes — per snapshot, layered between the caller’s overlay and the shipped base.
Required Methods§
fn recipes(&self, ask: &RecipeAsk) -> Result<Vec<RecipeSpec>, SourceError>
fn recipes(&self, ask: &RecipeAsk) -> Result<Vec<RecipeSpec>, SourceError>
The recipes the source holds for the keys ask names. A recipe for a
key not asked about is accepted and used like any other.
§Errors
SourceError where the source itself failed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".