Enum flipdot_core::State[][src]

#[non_exhaustive]pub enum State {
    Unconfigured,
    ConfigInProgress,
    ConfigReceived,
    ConfigFailed,
    PixelsInProgress,
    PixelsReceived,
    PixelsFailed,
    PageLoaded,
    PageLoadInProgress,
    PageShown,
    PageShowInProgress,
    ReadyToReset,
}

Possible states that a sign can be in during operation.

These are reported by the sign in a ReportState message in response to Hello or QueryState.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unconfigured

The initial state upon power on or after a reset. No configuration or pixel data stored.

ConfigInProgress

The sign is waiting for the ODK to send the 16-byte configuration data.

ConfigReceived

The configuration data was successfully received.

ConfigFailed

Error encountered while reading the configuration data.

PixelsInProgress

The sign is waiting for the ODK to send the pixel data.

PixelsReceived

Pixel data was successfully received.

PixelsFailed

Error encountered while reading the pixel data.

PageLoaded

Page was loaded into memory and is ready to be shown.

PageLoadInProgress

Page is in the process of being loaded into memory.

PageShown

Loaded page was successfully shown.

PageShowInProgress

Page is in the process of being shown.

ReadyToReset

Sign is ready to reset back to the Unconfigured state.

Trait Implementations

impl Clone for State[src]

impl Copy for State[src]

impl Debug for State[src]

impl Eq for State[src]

impl Hash for State[src]

impl PartialEq<State> for State[src]

impl StructuralEq for State[src]

impl StructuralPartialEq for State[src]

Auto Trait Implementations

impl RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl UnwindSafe for State

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.