pub trait WalkStateUnit<Rhs = Self> {
type Error: Into<RoutingError>;
// Required methods
fn validate_next(&self, next_state: &Rhs) -> Result<(), Self::Error>;
fn finalize_error(&self) -> Self::Error;
}
Expand description
The payload of a walk state.
Required Associated Types§
type Error: Into<RoutingError>
Required Methods§
Sourcefn validate_next(&self, next_state: &Rhs) -> Result<(), Self::Error>
fn validate_next(&self, next_state: &Rhs) -> Result<(), Self::Error>
Validates whether the next state in a walk state is valid or not when advancing or finalizing.
Sourcefn finalize_error(&self) -> Self::Error
fn finalize_error(&self) -> Self::Error
The error that is returned by the walk state when attempting to finalize with an invalid state.