/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */usemalloc_size_of_derive::MallocSizeOf;usecrate::actor::{Actor, ActorRegistry};#[derive(MallocSizeOf)]pub(crate)structSimulatorActor{name: String,
}implSimulatorActor{pubfnregister(registry:&ActorRegistry)-> String{let name = registry.new_name::<Self>();let actor =Self{ name: name.clone()};
registry.register::<Self>(actor);
name
}}implActor forSimulatorActor{fnname(&self)-> String{self.name.clone()}}