pub struct OnTickEvent {
pub name: &'static str,
pub tick: u32,
}Expand description
It is fired once every tick. Since this event is fired every tick, its handler shouldn’t include performance heavy code.
Fields§
§name: &'static str§tick: u32Trait Implementations§
Source§impl Clone for OnTickEvent
impl Clone for OnTickEvent
Source§fn clone(&self) -> OnTickEvent
fn clone(&self) -> OnTickEvent
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 OnTickEvent
Source§impl Debug for OnTickEvent
impl Debug for OnTickEvent
Source§impl Default for OnTickEvent
impl Default for OnTickEvent
Source§fn default() -> OnTickEvent
fn default() -> OnTickEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnTickEvent
impl PartialEq for OnTickEvent
impl StructuralPartialEq for OnTickEvent
Auto Trait Implementations§
impl Freeze for OnTickEvent
impl RefUnwindSafe for OnTickEvent
impl Send for OnTickEvent
impl Sync for OnTickEvent
impl Unpin for OnTickEvent
impl UnsafeUnpin for OnTickEvent
impl UnwindSafe for OnTickEvent
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