#[non_exhaustive]pub enum RecipeResolveError {
Missing {
endpoint: RecipeEndpoint,
name: String,
},
Invalid {
endpoint: RecipeEndpoint,
name: String,
reason: &'static str,
},
}Expand description
Failure while resolving one of a recipe’s required named endpoints.
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.
Missing
The required endpoint was absent from the bound runtime.
Fields
§
endpoint: RecipeEndpointRequired endpoint category.
Invalid
A named endpoint exists but does not satisfy the requested contract.
Trait Implementations§
Source§impl Clone for RecipeResolveError
impl Clone for RecipeResolveError
Source§fn clone(&self) -> RecipeResolveError
fn clone(&self) -> RecipeResolveError
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 RecipeResolveError
impl Debug for RecipeResolveError
Source§impl Display for RecipeResolveError
impl Display for RecipeResolveError
impl Eq for RecipeResolveError
Source§impl Error for RecipeResolveError
Available on crate feature std only.
impl Error for RecipeResolveError
Available on crate feature
std only.1.30.0 · 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<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 RecipeResolveError
impl PartialEq for RecipeResolveError
impl StructuralPartialEq for RecipeResolveError
Auto Trait Implementations§
impl Freeze for RecipeResolveError
impl RefUnwindSafe for RecipeResolveError
impl Send for RecipeResolveError
impl Sync for RecipeResolveError
impl Unpin for RecipeResolveError
impl UnsafeUnpin for RecipeResolveError
impl UnwindSafe for RecipeResolveError
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