Enum flipdot_core::Operation
source · #[non_exhaustive]pub enum Operation {
ReceiveConfig,
ReceivePixels,
ShowLoadedPage,
LoadNextPage,
StartReset,
FinishReset,
}
Expand description
Operations that can be requested of a sign, which trigger actions and/or state changes.
These are requested by the ODK via a RequestOperation
message.
Variants (Non-exhaustive)§
This enum is marked as 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.
ReceiveConfig
Receive the 16-byte configuration data.
ReceivePixels
Receive one or more pages of pixel data.
ShowLoadedPage
Show the page that’s currently loaded in memory.
LoadNextPage
Load the next stored page into memory in preparation to show.
StartReset
Begin the process of resetting back to the Unconfigured
state.
FinishReset
Finish the process of resetting back to the Unconfigured
state.
Trait Implementations§
source§impl PartialEq for Operation
impl PartialEq for Operation
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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