pub struct OnTrainCreatedEvent {
pub name: &'static str,
pub old_train_id_1: u32,
pub old_train_id_2: u32,
pub tick: u32,
pub train: LuaTrain,
}Expand description
Called when a new train is created either through disconnecting/connecting an existing one or building a new one.
Fields§
§name: &'static str§old_train_id_1: u32§old_train_id_2: u32§tick: u32§train: LuaTrainTrait Implementations§
Source§impl Clone for OnTrainCreatedEvent
impl Clone for OnTrainCreatedEvent
Source§fn clone(&self) -> OnTrainCreatedEvent
fn clone(&self) -> OnTrainCreatedEvent
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 OnTrainCreatedEvent
Source§impl Debug for OnTrainCreatedEvent
impl Debug for OnTrainCreatedEvent
Source§impl Default for OnTrainCreatedEvent
impl Default for OnTrainCreatedEvent
Source§fn default() -> OnTrainCreatedEvent
fn default() -> OnTrainCreatedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnTrainCreatedEvent
impl PartialEq for OnTrainCreatedEvent
impl StructuralPartialEq for OnTrainCreatedEvent
Auto Trait Implementations§
impl Freeze for OnTrainCreatedEvent
impl RefUnwindSafe for OnTrainCreatedEvent
impl Send for OnTrainCreatedEvent
impl Sync for OnTrainCreatedEvent
impl Unpin for OnTrainCreatedEvent
impl UnsafeUnpin for OnTrainCreatedEvent
impl UnwindSafe for OnTrainCreatedEvent
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