Struct ticktime::event::TickTimeEvent[][src]

pub struct TickTimeEvent {
    pub second_update: Option<TicketTimeEventValue>,
    pub minute_update: Option<TicketTimeEventValue>,
    pub hour_update: Option<TicketTimeEventValue>,
    pub day_update: Option<TicketTimeEventValue>,
    pub week_update: Option<TicketTimeEventValue>,
    pub month_update: Option<TicketTimeEventValue>,
    pub season_update: Option<TicketTimeEventValue>,
    pub year_update: Option<TicketTimeEventValue>,
}

Contains all the updated values during this tick. Usefull to create an event oriented system.

Fields

second_update: Option<TicketTimeEventValue>

Some(val) if computed second has been updated, None otherwise. Note : old value and new value can be the same if the tick is 60 seconds

minute_update: Option<TicketTimeEventValue>

Some(val) if computed minute has been updated, None otherwise. Note : old value and new value can be the same if the tick is n hour(s)

hour_update: Option<TicketTimeEventValue>

Some(val) if computed hour has been updated, None otherwise. Note : old value and new value can be the same if the tick is n day(s)

day_update: Option<TicketTimeEventValue>

Some(val) if computed day has been updated, None otherwise. Note : old value and new value can be the same if the tick is n month or n year

week_update: Option<TicketTimeEventValue>

Some(val) if computed week has been updated, None otherwise. Note : old value and new value can be the same if the tick is n year

month_update: Option<TicketTimeEventValue>

Some(val) if computed month has been updated, None otherwise. Note : old value and new value can be the same if the tick is n year

season_update: Option<TicketTimeEventValue>

Some(val) if computed season has been updated, None otherwise. Note : old value and new value can be the same if the tick is n year

year_update: Option<TicketTimeEventValue>

Some(val) if computed year has been updated, None otherwise.

Trait Implementations

impl Debug for TickTimeEvent[src]

impl Default for TickTimeEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.