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::Error;
}
Expand description

The payload of a walk state.

Required Associated Types§

Required Methods§

source

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.

source

fn finalize_error() -> Self::Error

The error that is returned by the walk state when attempting to finalize with an invalid state.

Object Safety§

This trait is not object safe.

Implementors§