@@ -369,6 +369,7 @@ pub struct Despawn {
369
369
pub entity : Entity ,
370
370
}
371
371
372
+ /// The error resulting from [`EntityCommands::despawn`]
372
373
#[ derive( Debug ) ]
373
374
pub struct DespawnError {
374
375
pub entity : Entity ,
@@ -393,6 +394,8 @@ pub struct InsertBundle<T> {
393
394
pub bundle : T ,
394
395
}
395
396
397
+ /// The error resulting from [`EntityCommands::insert_bundle`]
398
+ /// Contains both the failed to insert bundle and the relative entity.
396
399
pub struct InsertBundleError < T > {
397
400
pub entity : Entity ,
398
401
pub bundle : T ,
@@ -432,6 +435,8 @@ pub struct Insert<T> {
432
435
pub component : T ,
433
436
}
434
437
438
+ /// The error resulting from [`EntityCommands::insert`]
439
+ /// Contains both the failed to insert component and the relative entity.
435
440
pub struct InsertError < T > {
436
441
pub entity : Entity ,
437
442
pub component : T ,
@@ -472,6 +477,7 @@ pub struct Remove<T> {
472
477
phantom : PhantomData < T > ,
473
478
}
474
479
480
+ /// The error resulting from [`EntityCommands::remove`]
475
481
pub struct RemoveError < T > {
476
482
pub entity : Entity ,
477
483
phantom : PhantomData < T > ,
@@ -511,6 +517,7 @@ pub struct RemoveBundle<T> {
511
517
pub phantom : PhantomData < T > ,
512
518
}
513
519
520
+ /// The error resulting from [`EntityCommands::remove_bundle`]
514
521
pub struct RemoveBundleError < T > {
515
522
pub entity : Entity ,
516
523
phantom : PhantomData < T > ,
@@ -560,8 +567,9 @@ pub struct RemoveResource<T: Component> {
560
567
pub phantom : PhantomData < T > ,
561
568
}
562
569
570
+ /// The error resulting from [`Commands::remove_resource`]
563
571
pub struct RemoveResourceError < T > {
564
- pub phantom : PhantomData < T > ,
572
+ phantom : PhantomData < T > ,
565
573
}
566
574
567
575
impl < T > Debug for RemoveResourceError < T > {
0 commit comments