[][src]Module xaynet::state_machine::phases

This module provides the PhaseStates of the StateMachine.

Structs

Idle

Idle state

PhaseState

The state corresponding to a phase of the PET protocol.

Shutdown

Shutdown state

Sum

Sum state

Sum2

Sum2 state

Unmask

Unmask state

Update

Update state

Enums

PhaseName

Name of the current phase

StateError

Error that can occur during the execution of the StateMachine.

Traits

Handler

A trait that must be implemented by a state to handle a request.

Phase

A trait that must be implemented by a state in order to move to a next state.

Purge

When the state machine transitions to a new phase, all the pending requests are considered outdated, and purged. The Purge trait implements this behavior.

Functions

reject_request

Respond to the given request with a rejection error.