redux/action/
enabling_condition.rs

1#[allow(unused_variables)]
2pub trait EnablingCondition<State> {
3    /// Enabling condition for the Action.
4    ///
5    /// Checks if the given action is enabled for a given state and timestamp.
6    fn is_enabled(&self, state: &State, time: crate::Timestamp) -> bool {
7        true
8    }
9}