1use super::*; 2 3impl redux::EnablingCondition<crate::State> for P2pPeerAction { 4 fn is_enabled(&self, state: &crate::State, time: redux::Timestamp) -> bool { 5 state.p2p.is_enabled(self, time) 6 } 7}