pub trait StateMachineContext {
Show 13 methods fn shutdown_handler(&mut self) -> Result<(), OtaError>; fn request_data_handler(&mut self) -> Result<(), OtaError>; fn resume_job_handler(&mut self) -> Result<(), OtaError>; fn process_data_handler<'a>(
        &mut self,
        event_data: &'a mut [u8]
    ) -> Result<(), OtaError>; fn request_job_handler(&mut self) -> Result<(), OtaError>; fn job_notification_handler<'a>(
        &mut self,
        event_data: &JobEventData<'a>
    ) -> Result<(), OtaError>; fn user_abort_handler(&mut self) -> Result<(), OtaError>; fn close_file_handler(&mut self) -> Result<(), OtaError>; fn process_job_handler<'a>(
        &mut self,
        event_data: &JobEventData<'a>
    ) -> Result<(), OtaError>; fn restart_handler(
        &mut self,
        event_data: &RestartReason
    ) -> Result<(), OtaError>; fn start_handler(&mut self) -> Result<(), OtaError>; fn init_file_handler(&mut self) -> Result<(), OtaError>; fn in_self_test_handler(&mut self) -> Result<(), OtaError>;
}
Expand description

This trait outlines the guards and actions that need to be implemented for the state machine.

Required Methods

Implementors