pub enum SpawnError {
UnregisteredGameObjectType,
NoSpace,
}
Expand description
Error type returned by Scene::spawn
.
Variants§
UnregisteredGameObjectType
Attempted to spawn a game object that wasn’t registered for the
Scene
with SceneBuilder::with_game_object_type
. This generally
hints at a bug in the game’s scene initialization code.
NoSpace
The Scene
’s storage limit for the GameObject
type has been
reached.
This can be avoided by reserving more space in the first place (via the
count
parameter of SceneBuilder::with_game_object_type
), or at
runtime by removing at least one existing game object of the same type
to make room. Game objects can be removed with the Scene::delete
function.
Trait Implementations§
Source§impl Debug for SpawnError
impl Debug for SpawnError
Source§impl PartialEq for SpawnError
impl PartialEq for SpawnError
impl StructuralPartialEq for SpawnError
Auto Trait Implementations§
impl Freeze for SpawnError
impl RefUnwindSafe for SpawnError
impl Send for SpawnError
impl Sync for SpawnError
impl Unpin for SpawnError
impl UnwindSafe for SpawnError
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