pub enum CraftingError {
RecipeNotFound {
recipe_id: String,
},
InsufficientSkill {
required: u32,
actual: u32,
},
MissingIngredient {
item_id: String,
required: u32,
available: u32,
},
MissingTool {
tool_id: String,
},
WorkbenchWrongType {
expected: WorkbenchType,
actual: WorkbenchType,
},
WorkbenchBroken {
repair_cost: u64,
},
QueueFull,
InsufficientFuel,
}Expand description
Reasons a crafting attempt can fail.
Variants§
RecipeNotFound
InsufficientSkill
MissingIngredient
MissingTool
WorkbenchWrongType
WorkbenchBroken
QueueFull
InsufficientFuel
Trait Implementations§
Source§impl Clone for CraftingError
impl Clone for CraftingError
Source§fn clone(&self) -> CraftingError
fn clone(&self) -> CraftingError
Returns a duplicate of the value. Read more
1.0.0 · 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 CraftingError
impl Debug for CraftingError
Auto Trait Implementations§
impl Freeze for CraftingError
impl RefUnwindSafe for CraftingError
impl Send for CraftingError
impl Sync for CraftingError
impl Unpin for CraftingError
impl UnsafeUnpin for CraftingError
impl UnwindSafe for CraftingError
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