Enum n18ui::State [−][src]
pub enum State {
Start(Start),
Default(Default),
EditTokens(EditTokens),
ReplaceTile(ReplaceTile),
FindRoutesCompany(SelectCompany),
FindRoutesTrains(SelectTrains),
FindRoutesSearch(Search),
FindRoutesFound(Found),
}
Expand description
The different user interface states.
Variants
Start(Start)
Tuple Fields of Start
0: Start
Default(Default)
Tuple Fields of Default
0: Default
EditTokens(EditTokens)
Tuple Fields of EditTokens
0: EditTokens
ReplaceTile(ReplaceTile)
Tuple Fields of ReplaceTile
0: ReplaceTile
FindRoutesCompany(SelectCompany)
Tuple Fields of FindRoutesCompany
FindRoutesTrains(SelectTrains)
Tuple Fields of FindRoutesTrains
0: SelectTrains
FindRoutesSearch(Search)
Tuple Fields of FindRoutesSearch
0: Search
FindRoutesFound(Found)
Tuple Fields of FindRoutesFound
0: Found
Implementations
pub fn ping(
&mut self,
assets: &mut Assets,
controller: &mut Controller
) -> (UiResponse, Option<State>)
Trait Implementations
Note the 'static
lifetime in the return type, which is necessary for
this to compile.
See this
thread
on the Rust forum, and how static lifetimes apply to trait
bounds:
As a trait bound, it means the type does not contain any non-static references. E.g., the receiver can hold on to the type for as long as they want and it will never become invalid until they drop it.
Performs the conversion.
Returns the default UI state, with the provided active map hex.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.