#[non_exhaustive]pub enum RecipeError {
Build(BuildError),
Bind(Box<BindError>),
Resolve(RecipeResolveError),
}Expand description
Failure while constructing, binding, or resolving a crate::Recipe.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Build(BuildError)
The recipe could not construct its validated weave.
Bind(Box<BindError>)
The recipe’s weave could not bind into a runtime.
Resolve(RecipeResolveError)
A required typed endpoint could not be resolved from the bound runtime.
Trait Implementations§
Source§impl Clone for RecipeError
impl Clone for RecipeError
Source§fn clone(&self) -> RecipeError
fn clone(&self) -> RecipeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecipeError
impl Debug for RecipeError
Source§impl Display for RecipeError
impl Display for RecipeError
impl Eq for RecipeError
Source§impl Error for RecipeError
Available on crate feature std only.
impl Error for RecipeError
Available on crate feature
std only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BindError> for RecipeError
impl From<BindError> for RecipeError
Source§impl From<BuildError> for RecipeError
impl From<BuildError> for RecipeError
Source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Converts to this type from the input type.
Source§impl From<RecipeError> for ScenarioError
impl From<RecipeError> for ScenarioError
Source§fn from(value: RecipeError) -> Self
fn from(value: RecipeError) -> Self
Converts to this type from the input type.
Source§impl From<RecipeResolveError> for RecipeError
impl From<RecipeResolveError> for RecipeError
Source§fn from(value: RecipeResolveError) -> Self
fn from(value: RecipeResolveError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RecipeError
impl PartialEq for RecipeError
impl StructuralPartialEq for RecipeError
Auto Trait Implementations§
impl Freeze for RecipeError
impl RefUnwindSafe for RecipeError
impl Send for RecipeError
impl Sync for RecipeError
impl Unpin for RecipeError
impl UnsafeUnpin for RecipeError
impl UnwindSafe for RecipeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more