pub struct OnWorkerRobotExpiredEvent {
pub name: &'static str,
pub robot: LuaEntity,
pub tick: u32,
}Expand description
Called when a worker (construction or logistic) robot expires through a lack of energy.
Fields§
§name: &'static str§robot: LuaEntity§tick: u32Trait Implementations§
Source§impl Clone for OnWorkerRobotExpiredEvent
impl Clone for OnWorkerRobotExpiredEvent
Source§fn clone(&self) -> OnWorkerRobotExpiredEvent
fn clone(&self) -> OnWorkerRobotExpiredEvent
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 moreimpl Copy for OnWorkerRobotExpiredEvent
Source§impl Debug for OnWorkerRobotExpiredEvent
impl Debug for OnWorkerRobotExpiredEvent
Source§impl Default for OnWorkerRobotExpiredEvent
impl Default for OnWorkerRobotExpiredEvent
Source§fn default() -> OnWorkerRobotExpiredEvent
fn default() -> OnWorkerRobotExpiredEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnWorkerRobotExpiredEvent
Auto Trait Implementations§
impl Freeze for OnWorkerRobotExpiredEvent
impl RefUnwindSafe for OnWorkerRobotExpiredEvent
impl Send for OnWorkerRobotExpiredEvent
impl Sync for OnWorkerRobotExpiredEvent
impl Unpin for OnWorkerRobotExpiredEvent
impl UnsafeUnpin for OnWorkerRobotExpiredEvent
impl UnwindSafe for OnWorkerRobotExpiredEvent
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