pub struct Spawner {
pub template: AssetId,
pub interval: f32,
pub lifetime: f32,
}Expand description
Authored fields of a Spawner; the runtime accumulator is not declared.
Fields§
§template: AssetIdName of the placement to copy on each spawn.
interval: f32Seconds between spawns.
lifetime: f32Seconds each spawned copy lives before auto-removal; 0 keeps it forever.
Trait Implementations§
Source§impl Clone for SpawnerArgs
impl Clone for SpawnerArgs
Source§fn clone(&self) -> SpawnerArgs
fn clone(&self) -> SpawnerArgs
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 SpawnerArgs
impl Debug for SpawnerArgs
Source§impl Default for SpawnerArgs
impl Default for SpawnerArgs
Source§impl<'de> Deserialize<'de> for SpawnerArgswhere
SpawnerArgs: Default,
impl<'de> Deserialize<'de> for SpawnerArgswhere
SpawnerArgs: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpawnerArgs
impl RefUnwindSafe for SpawnerArgs
impl Send for SpawnerArgs
impl Sync for SpawnerArgs
impl Unpin for SpawnerArgs
impl UnsafeUnpin for SpawnerArgs
impl UnwindSafe for SpawnerArgs
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