Type Alias SessionState

Source
pub type SessionState = State;

Aliased Type§

#[repr(i32)]
pub enum SessionState { Ready = 0, ReadyWithFatalErrors = 1, ReadyWithCookErrors = 2, StartingCook = 3, Cooking = 4, StartingLoad = 5, Loading = 6, Max = 7, }

Variants§

§

Ready = 0

§

ReadyWithFatalErrors = 1

§

ReadyWithCookErrors = 2

§

StartingCook = 3

§

Cooking = 4

§

StartingLoad = 5

§

Loading = 6

§

Max = 7

Implementations

Source§

impl State

Source

pub const MaxReadyState: State = State::ReadyWithCookErrors

Trait Implementations§

Source§

impl From<i32> for SessionState

Source§

fn from(s: i32) -> Self

Converts to this type from the input type.
Source§

impl Clone for State

Source§

fn clone(&self) -> State

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for State

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for State

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for State

Source§

fn eq(&self, other: &State) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for State

Source§

impl Eq for State

Source§

impl StructuralPartialEq for State