pub struct RecipeUnregisteredEvent {
pub recipe_id: RecipeId,
}Expand description
A recipe has been removed from the runtime registry.
Fired at the Post stage on the game bus once per removed
recipe — including each entry removed by a single
remove_by_result call or by clear. Useful for plugins that
maintain a derived index of the registry.
Fires during plugin loading; see RecipeRegisterEvent for the
context contract.
Fields§
§recipe_id: RecipeIdStable identifier of the recipe that was removed.
Trait Implementations§
Source§impl Clone for RecipeUnregisteredEvent
impl Clone for RecipeUnregisteredEvent
Source§fn clone(&self) -> RecipeUnregisteredEvent
fn clone(&self) -> RecipeUnregisteredEvent
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 RecipeUnregisteredEvent
impl Debug for RecipeUnregisteredEvent
Source§impl Event for RecipeUnregisteredEvent
impl Event for RecipeUnregisteredEvent
Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Whether this event has been cancelled by a Validate handler.
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Upcasts to
&mut dyn Any for mutable type-erased dispatch.Auto Trait Implementations§
impl Freeze for RecipeUnregisteredEvent
impl RefUnwindSafe for RecipeUnregisteredEvent
impl Send for RecipeUnregisteredEvent
impl Sync for RecipeUnregisteredEvent
impl Unpin for RecipeUnregisteredEvent
impl UnsafeUnpin for RecipeUnregisteredEvent
impl UnwindSafe for RecipeUnregisteredEvent
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